This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: --gc-sections and C library linkage issues (?)
- To: Ulrich Drepper <drepper at cygnus dot com>
- Subject: Re: --gc-sections and C library linkage issues (?)
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Thu, 24 Aug 2000 18:35:21 -0700 (PDT)
- cc: bug-glibc at gnu dot org, alan at linuxcare dot com dot au, binutils at sources dot redhat dot com
> > Alan, I've cc'd you on this because you quickly fixed the previous
> > problem. Can you please look at this, too? It looks like the exact same
> > deal, ie something like this needs to be added to the linker script:
> >
> > .__libc_subinit : { KEEP (*(.__libc_subinit)) }
>
> We have several different sections like this.
Can you please provide a detailed list?
> You are fixing a symptom. IMO --gc-sections should not be used until
> it can be properly implemented.
...and it's never going to be properly implemented unless it's used, IMHO.
I'm using it, if ld can grok the flag. The advantages for static c++ code
have already been documented, which is why this flag has been turned on
for the last two months.
-benjamin