On 02/01/2010 05:41 PM, Allan McRae wrote:
On 01/02/10 21:57, Shridhar Daithankar wrote:
On Monday 01 February 2010 16:09:08 solsTiCe d'Hiver wrote:
prelink modifies binary and library to ... prelink ;-) them. during the days of kde 3 I noticed a significant improvement in loading time of applications. I have dropped its use (prelink ... and kde3) because some recent binutils(or gcc or i don't remember) feature is supposed to do almost the same thing [ref. needed]
A long time back(seems like eternity) I wrote a small post describing GNU hash options in linker at http://dhoomketu.net.in/node/34.
I cannot find the spec file in the arch GCC package anymore but the binaries do contain GNU hash section. Just run readelf on any binary, like /bin/ls and look for .gnu.hash.
If the gcc package forces linker option to be GNU hash style only(I don't know how to verify this on arch), it could achieve the speed improvement and reduce the binary size somewhat as well.
I guess most of that is already used by now except for forcing the GNU hash- style only.
The gcc package uses --hash-style=both by default, but the default LDFLAGS for makepkg overrides this with --hash-style=gnu
Allan
Well, I'm bumping this thread, but I have a doubt. When we run prelink, prelinking is permanent or has to be done at every boot ? -- Nilesh Govindarajan Site & Server Adminstrator www.itech7.com