summaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2011-09-27 15:59:53 +0000
committerKai Tietz <kai.tietz@onevision.com>2011-09-27 15:59:53 +0000
commitc6eb346bbdb8ba56baaf2d56f1183cf755c0d120 (patch)
treef728aea2a1c574bcc1bf68d6ccc1de70aab4d709 /ld/scripttempl
parent8e04a1e38b98bb65d2c48bb9dec0d76e37412ef3 (diff)
downloadbinutils-redhat-c6eb346bbdb8ba56baaf2d56f1183cf755c0d120.tar.gz
* scripttempl/pe.sc (.text): Add support for
.gnu.linkonce.t.* section. (.debug_info): Only use .gnu.linkonce.wi.* for relocating. * scripttempl/pep.sc: Likewise.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/pe.sc5
-rw-r--r--ld/scripttempl/pep.sc5
2 files changed, 6 insertions, 4 deletions
diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc
index 3cb77ab4e0..3a27952fe1 100644
--- a/ld/scripttempl/pe.sc
+++ b/ld/scripttempl/pe.sc
@@ -73,6 +73,7 @@ SECTIONS
*(.text)
${R_TEXT}
${RELOCATING+ *(.text.*)}
+ ${RELOCATING+ *(.gnu.linkonce.t.*)}
*(.glue_7t)
*(.glue_7)
${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
@@ -238,7 +239,7 @@ SECTIONS
/* DWARF 2. */
.debug_info ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
{
- *(.debug_info) *(.gnu.linkonce.wi.*)
+ *(.debug_info${RELOCATING+ .gnu.linkonce.wi.*})
}
.debug_abbrev ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
@@ -306,7 +307,7 @@ SECTIONS
/* DWARF 4. */
.debug_types ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
{
- *(.debug_types) *(.gnu.linkonce.wt.*)
+ *(.debug_types${RELOCATING+ .gnu.linkonce.wt.*})
}
}
EOF
diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc
index 60515ef9f1..b2113fe227 100644
--- a/ld/scripttempl/pep.sc
+++ b/ld/scripttempl/pep.sc
@@ -73,6 +73,7 @@ SECTIONS
*(.text)
${R_TEXT}
${RELOCATING+ *(.text.*)}
+ ${RELOCATING+ *(.gnu.linkonce.t.*)}
*(.glue_7t)
*(.glue_7)
${CONSTRUCTING+. = ALIGN(8);}
@@ -244,7 +245,7 @@ SECTIONS
/* DWARF 2. */
.debug_info ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
{
- *(.debug_info) *(.gnu.linkonce.wi.*)
+ *(.debug_info${RELOCATING+ .gnu.linkonce.wi.*})
}
.debug_abbrev ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
@@ -312,7 +313,7 @@ SECTIONS
/* DWARF 4. */
.debug_types ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
{
- *(.debug_types) *(.gnu.linkonce.wt.*)
+ *(.debug_types${RELOCATING+ .gnu.linkonce.wt.*})
}
}
EOF