--gc-sections and C library linkage issues (?)
Benjamin Kosnik
bkoz@redhat.com
Thu Aug 24 18:35:00 GMT 2000
> > 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
More information about the Binutils
mailing list