This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld --gc-sections for libraries, gcc generating movsl
- To: etienne at masroudeau dot com
- Subject: Re: ld --gc-sections for libraries, gcc generating movsl
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Mon, 8 Jan 2001 09:43:12 -0800
- CC: binutils at sources dot redhat dot com
- References: <Pine.LNX.4.30.0101072325390.2738-100000@hp.masroudeau.com>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> 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>