From 032b94c5fd9c2734a401798341eece75159ad0fb Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 21 Aug 2009 10:38:14 +0000 Subject: [PATCH] * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix. --- ld/ChangeLog | 4 ++++ ld/scripttempl/elf.sc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index ab12959e4ea..f192acab4db 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2009-08-21 Richard Guenther + + * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix. + 2009-08-12 Tristan Gingold * ld.h (fat_user_section_struct): Add map_symbol_def_count field. diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 69e25c337c9..b3aea40f1ad 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -143,7 +143,7 @@ RELA_IPLT=".rela.iplt ${RELOCATING-0} : 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} : { -- 2.30.2