ld --gc-sections for libraries, gcc generating movsl
Geoff Keating
geoffk@geoffk.org
Mon Jan 8 09:43:00 GMT 2001
> Date: Mon, 8 Jan 2001 01:09:33 -0800 (PST)
> From: Etienne Lorrain <etienne@masroudeau.com>
> The question is why only some unused functions are removed using
> "gcc -ffunction-sections" and "ld --gc-sections". It seems that
> all function not called and not removed are in the two libraries
> (ext2fs and zlib) I am using.
> To show the problem, you need to build the complete Gujin with or
> without the Makefile variable "GC_SECTION".
Did you build ext2fs and zlib with -ffunction-sections?
--
- Geoffrey Keating <geoffk@geoffk.org>
More information about the Binutils
mailing list