H.J. Lu
Fri May 14 03:13:00 GMT 2010

On Thu, Dec 4, 2008 at 10:31 PM, Ian Lance Taylor <> wrote:
> Cary Coutant <> writes:
>> This patch adds a --strip-lto-sections option to gold, which tells it
>> to ignore any PROGBITS section where SHF_ALLOC is not set and whose
>> name begins with ".gnu.lto_".
>> It may be worth making this the default behavior.
> I agree that it seems simpler to make this the default behaviour.
> Does anybody see a problem with that?
> Really we should modify gas to always recognize 'e' as a section flag
> setting SHF_EXCLUDE, and modify ld and gold to always recognize
> SHF_EXCLUDE.  That flag seems generically useful, and given its use by
> several targets it seems quite unlikely that it will ever get another
> meaning for generic ELF.

I opened a bug:

Will a generic patch acceptable?



More information about the Binutils mailing list