summaryrefslogtreecommitdiff
path: root/ld/scripttempl/i386go32.sc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-03-23 23:05:07 +0000
committerNick Clifton <nickc@redhat.com>2001-03-23 23:05:07 +0000
commit050b15caa6873b258067e8bf9b3a696dc16eb79f (patch)
treef1d81c0a0a49c7ffd5fccaf0a03f3f9569812942 /ld/scripttempl/i386go32.sc
parentd0025ab03118c923a910db41605bc5fa21c8b6f2 (diff)
downloadbinutils-redhat-050b15caa6873b258067e8bf9b3a696dc16eb79f.tar.gz
Support the GCC flags '-ffunction-sections' and '-fdata-sections'.
Set the VMA of STABS sections to zero.
Diffstat (limited to 'ld/scripttempl/i386go32.sc')
-rw-r--r--ld/scripttempl/i386go32.sc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/scripttempl/i386go32.sc b/ld/scripttempl/i386go32.sc
index ac67b92296..482a8cbd88 100644
--- a/ld/scripttempl/i386go32.sc
+++ b/ld/scripttempl/i386go32.sc
@@ -23,6 +23,7 @@ SECTIONS
{
.text ${RELOCATING+ ${TARGET_PAGE_SIZE}+SIZEOF_HEADERS} : {
*(.text)
+ ${RELOCATING+*(.text.*)}
${RELOCATING+*(.gnu.linkonce.t*)}
*(.const*)
*(.ro*)
@@ -40,6 +41,7 @@ SECTIONS
*(.dtor)
djgpp_last_dtor = . ;}
*(.data)
+ ${RELOCATING+*(.data.*)}
${RELOCATING+*(.gcc_exc*)}
${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
@@ -60,6 +62,9 @@ SECTIONS
${RELOCATING+ end = . ; PROVIDE(_end = .) ;}
${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});}
}
+ /* Stabs debugging sections. */
+ .stab 0 : { *(.stab) }
+ .stabstr 0 : { *(.stabstr) }
/* DWARF 2 */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }