This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Optimised output from ld
Richard Henderson <rth@redhat.com> writes:
> On Fri, May 09, 2003 at 01:58:06AM -0700, Ian Lance Taylor wrote:
> > --gc-sections is not supported in conjunction with -r. I'm not sure
> > why, myself.
>
> (1) There is no entry point to begin keeping sections.
> (2) It is not known what symbols the runtime will refer to.
I suppose it would be possible to require explicit -U options when
using --gc-sections with -r, and use that set of symbols as the root.
That might be useful for embedded systems which work with relocateable
object files. If anybody cares enough to implement it.
Ian