I'm trying to rebuild my world with GNU_HASH info enabled in libraries/executables. I've installed sys-devel/binutils-2.17.50.0.8, added to make.conf: CFLAGS="... -Wl,-O1,--hash-style=both" Then I figured, that some packages do not use CFLAGS when making shared from .o, for example. I modified make.conf: LDFLAGS="-Wl,-O1,--hash-style=both" CFLAGS="... ${LDFLAGS}" But I found that some packages (iptables for ex.) replaces LDFLAGS and used EXT_LDFLAGS. I've added EXT_LDFLAGS. Finally, I find out, that some ebuilds cuts CFLAGS using flag-o-matic.eclass. At this point I decided to patch binutils to use "--hash-style=both" by default. I think that will be good to use it for all, because it doesn't breaks anything - just making files little bigger. But it will be easier to use GNU_HASH in gentoo with it.
Created attachment 103946 [details, diff] binutils-gnuhash.patch Proposed patch. Enables GNU_HASH by default.
no thanks
i've thought about this some more and i'll add it for the next binutils versions
part of 2.17.50.0.10 now, cheers