[PATCH] Drop sections with .gnu.lto_ prefix on ELF targets when relocating
Nick Clifton
nickc@redhat.com
Mon Aug 24 14:30:00 GMT 2009
Hi Richard,
>> Can these link-time optimizations be applied to targets other than x86 types ?
>> If so, are we going to need similar patches to other linker script templates,
>> such as:
>>
>> armpbabi.sc
>> elf32sh-symbian.sc
>> elf64hppa.sc
>> elfxtensa.sc
>> mep.sc
>
> It likely can be applied to all elf targets. So yes, we probably need
> to patch all templates that also discard *(.note.GNU-stack) and
> *(.gnu_debuglink).
Ok - I'll take care of this.
> As I can't test them I didn't patch them - to me
> it looks like pieces of that scripts should be moved to a common
> sub-template ...
Well that was the whole point of the elf.sc script, but some ports have
chosen to go their own way...
Cheers
Nick
More information about the Binutils
mailing list