Bug#790686: clang-3.5: no build-id enabled
Jakub Wilk
jwilk at debian.org
Tue Jun 30 20:40:09 UTC 2015
Package: clang-3.5
Version: 1:3.5.2-1
ELFs created by clang don't have build-id note sections:
$ touch empty.c
$ gcc -shared empty.c && readelf -n a.out | grep BUILD_ID -c
1
$ clang-3.5 -shared empty.c && readelf -n a.out | grep BUILD_ID -c
0
I guess this fragment of lib/Driver/ToolChains.cpp is at fault:
if (Distro == DebianSqueeze || Distro == DebianWheezy ||
Distro == DebianJessie || IsOpenSUSE(Distro) ||
(IsRedhat(Distro) && Distro != RHEL4 && Distro != RHEL5) ||
(IsUbuntu(Distro) && Distro >= UbuntuKarmic))
ExtraOpts.push_back("--build-id");
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 4.0.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages clang-3.5 depends on:
ii binutils 2.25-9
ii libc6 2.19-18
ii libc6-dev 2.19-18
ii libclang-common-3.5-dev 1:3.5.2-1
ii libclang1-3.5 1:3.5.2-1
ii libedit2 3.1-20150325-1
ii libffi6 3.1-2+b2
ii libgcc-4.9-dev 4.9.2-22
ii libgcc1 1:5.1.1-12
ii libllvm3.5 1:3.5.2-1
ii libobjc-4.9-dev 4.9.2-22
ii libstdc++-4.9-dev 4.9.2-22
ii libstdc++6 5.1.1-12
ii libtinfo5 5.9+20150516-2
ii zlib1g 1:1.2.8.dfsg-2+b1
Versions of packages clang-3.5 recommends:
ii llvm-3.5-dev 1:3.5.2-1
ii python 2.7.9-1
--
Jakub Wilk
More information about the Pkg-llvm-team
mailing list