opnsense-ports/devel/djgpp-binutils/files/patch-ld-elf.sc
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

23 lines
888 B
Scala

RCS file: /cvs/src/src/ld/scripttempl/elf.sc,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -r1.81 -r1.82
--- ld/scripttempl/elf.sc 2007/06/29 16:29:17 1.81
+++ ld/scripttempl/elf.sc 2007/07/10 04:53:13 1.82
@@ -124,7 +124,7 @@
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.*) }"
-STACKNOTE="/DISCARD/ : { *(.note.GNU-stack) }"
+DISCARDED="/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) }"
if test -z "${NO_SMALL_DATA}"; then
SBSS=".sbss ${RELOCATING-0} :
{
@@ -518,6 +518,6 @@
${ATTRS_SECTIONS}
${OTHER_SECTIONS}
${RELOCATING+${OTHER_SYMBOLS}}
- ${RELOCATING+${STACKNOTE}}
+ ${RELOCATING+${DISCARDED}}
}
EOF