scummvm random work
[patches.git] / binutils-ld-discard-debuglink.patch
1 2007-07-07 Mike Frysinger <vapier@gentoo.org>
2
3 * scripttempl/elf.sc: Discard .gnu_debuglink.
4
5 --- ld/scripttempl/elf.sc
6 +++ ld/scripttempl/elf.sc
7 @@ -125,6 +125,7 @@
8 RODATA=".rodata ${RELOCATING-0} : { *(.rodata${RELOCATING+ .rodata.* .gnu.linkonce.r.*}) }"
9 DATARELRO=".data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) }"
10 STACKNOTE="/DISCARD/ : { *(.note.GNU-stack) }"
11 +DEBUGLINK="/DISCARD/ : { *(.gnu_debuglink) }"
12 if test -z "${NO_SMALL_DATA}"; then
13 SBSS=".sbss ${RELOCATING-0} :
14 {
15 @@ -519,5 +520,6 @@
16 ${OTHER_SECTIONS}
17 ${RELOCATING+${OTHER_SYMBOLS}}
18 ${RELOCATING+${STACKNOTE}}
19 + ${RELOCATING+${DEBUGLINK}}
20 }
21 EOF