Jorge Morais wrote:
Hi. According to discussion on gentoo-dev
http://archives.gentoo.org/gentoo-dev/msg_50182554f851bedb82f8a349fbc90352.xml
it seems the only reasons for -Wl,--hash-style=gnu not being default (yet)
are these headaches for the developers:
1) Apparently it does not work on mips
2) Apparently it needs >=glibc-2.5 and >=binutils-2.17.50.0.2

My PC is x86 and my toolchain is obviously more recent than
these old verions, so apparently the flag is completely safe.

I've enabled it in /etc/make.conf and I like the slight reduction
in binary size.

My main question is:
Can I just compile new packages with this flag, or do I need to
recompile the whole world? In other words, is there any incompatibility
between binaries linked with this flag and binaries linked with the default
hash-style (which in Gentoo is --hash-style=both, AFAIK)?

No, there's no need to rebuild everything since the older binaries have GNU-style hash too and there's no problem. Also, rebuilding anyway in order to "gain" something is not really recommendable; we're talking a few kilobytes here, *so* not worth the effort.


Reply via email to