Where is the dead symbol eliminator patch?
Ian Lance Taylor
ian@airs.com
Sun Jul 31 00:35:00 GMT 2005
Mike Hearn <mike@plan99.net> writes:
> When static linking a library, my copy of ld (Fedora Core 4, version
> binutils-2.15.94.0.2.2-2.1) seems to drop .o files that don't contain any
> used symbols - this is good. Unfortunately, only one symbol from that file
> being used is enough to link in the entire .o file, which is bad.
>
> ...
>
> I've been told Apple have written a patch to make this happen. Is this
> true? If so, does anybody know where I can find it?
I don't know what Apple has done.
What you want to do is compile with -ffunction-sections and link with
--gc-sections.
Ian
More information about the Binutils
mailing list