binutils/lto-discard.diff

18 lines
879 B
Diff

2009-08-20 Richard Guenther <rguenther@suse.de>
* scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
Index: ld/scripttempl/elf.sc
===================================================================
--- ld/scripttempl/elf.sc.orig 2009-01-16 15:14:06.000000000 +0100
+++ ld/scripttempl/elf.sc 2009-08-20 11:18:16.000000000 +0200
@@ -127,7 +127,7 @@ fi
DYNAMIC=".dynamic ${RELOCATING-0} : { *(.dynamic) }"
RODATA=".rodata ${RELOCATING-0} : { *(.rodata${RELOCATING+ .rodata.* .gnu.linkonce.r.*}) }"
DATARELRO=".data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) }"
-DISCARDED="/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) }"
+DISCARDED="/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }"
if test -z "${NO_SMALL_DATA}"; then
SBSS=".sbss ${RELOCATING-0} :
{