This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: --gc-sections and C library linkage issues (?)


> > 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]