This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Drop sections with .gnu.lto_ prefix on ELF targets when relocating
On Fri, 21 Aug 2009, Nick Clifton wrote:
> Hi Richard,
>
> > This implements support for GCC link-time optimization where GCC places
> > internal representation of the program in .gnu.lto_ prefixed sections.
> > When linking these section should be dropped.
>
> > 2009-08-20 Richard Guenther <rguenther@suse.de>
> >
> > * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
>
> Approved and applied, but ...
>
> 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). 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 ...
Thanks for applying the patch.
Richard.
--
Richard Guenther <rguenther@suse.de>
Novell / SUSE Labs
SUSE LINUX Products GmbH - Nuernberg - AG Nuernberg - HRB 16746 - GF: Markus Rex