Emilio Pozuelo Monfort schrieb: > reassign 535237 gcc-snapshot > retitle 535237 gcc: pass --build-id to the linker whenever possible > notfound 535237 2.19.1-1 > thanks > > Let's reassign this to gcc to pass -Wl,--build-id when the linker supports it. > We will see if we can/need to change ld too. > > Emilio Pozuelo Monfort wrote: >> By the way, gcc trunk (and gcc-snapshot in Debian) have now that option to >> pass >> -Wl,--build-id to the linker by default if that's supported, see [1]. I >> built it >> with that option this weekend, will test that everything keeps working fine >> and >> attach a patch here. > > OK, it seems to work fine: > > emi...@saturno:~/tmp$ echo "main(){}" > foo.c > emi...@saturno:~/tmp$ /usr/lib/gcc-snapshot/bin/gcc -o foo foo.c > emi...@saturno:~/tmp$ readelf -n foo > > Notes at offset 0x00000128 with length 0x00000020: > Owner Data size Description > GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag) > > Notes at offset 0x00000148 with length 0x00000024: > Owner Data size Description > GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) > emi...@saturno:~/tmp$ /usr/lib/gcc-snapshot/bin/gcc -o foo foo.c > -Wl,--build-id=none > emi...@saturno:~/tmp$ readelf -n foo > > Notes at offset 0x00000128 with length 0x00000020: > Owner Data size Description > GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag) > emi...@saturno:~/tmp$ > > The patch for gcc-snapshot is trivial: > > --- gcc-snapshot-20090620/debian/rules2 > +++ gcc-snapshot-20090620/debian/rules2 > @@ -119,6 +119,7 @@ > --prefix=/$(PF) \ > --enable-shared \ > --enable-multiarch \ > + --enable-linker-build-id \ > --with-system-zlib \ > > ifneq ($(PKGSOURCE),gcc-snapshot) > > > > I'll look into gcc-4.4 and gcc-4.3 next.
thanks. > By the way, are there plans to switch > to gcc-4.4 by default? If so, are there any blockers? yes, search for gfortran on debian-devel and the license thread on debian-gcc. Matthias -- To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org