[PATCH] Drop sections with .gnu.lto_ prefix on ELF targets when relocating

Nick Clifton nickc@redhat.com
Mon Aug 24 15:44:00 GMT 2009


Hi Richard,

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

I have applied the obvious patch to the following files.

Cheers
   Nick

ld/ChangeLog
2009-08-24  Nick Clifton  <nickc@redhat.com>

	* scripttempl/elfxtensa.sc (DISCARDED): Discard sections with
	.gnu.lto_ prefix.
	* scripttempl/armbpabi.sc: Likewise.
	* scripttempl/elf32sh-symbian.sc: Likewise.
	* scripttempl/elf64hppa.sc: Likewise.
	* scripttempl/mep.sc: Likewise.



More information about the Binutils mailing list