aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2006-09-24 06:23:15 +0000
committerH.J. Lu <hjl.tools@gmail.com>2006-09-24 06:23:15 +0000
commit779dafb461abac79fc429ac948d590b290e10ce9 (patch)
tree155f0b55de5dd645c9d3f2c5c153d44b0b99115a
parent86034c36bdfb5c7dee8cd88c3375062e172e4a38 (diff)
downloadgdb-779dafb461abac79fc429ac948d590b290e10ce9.zip
gdb-779dafb461abac79fc429ac948d590b290e10ce9.tar.gz
gdb-779dafb461abac79fc429ac948d590b290e10ce9.tar.bz2
2006-09-23 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3249 * scripttempl/elf.sc: Don't combine .gnu.linkonce.d.*personality* and .gnu.linkonce.wi.* sections with .data and .debug_info for relocatable link.
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/scripttempl/elf.sc4
2 files changed, 9 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index dd9eb5d..f843c16 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2006-09-23 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/3249
+ * scripttempl/elf.sc: Don't combine .gnu.linkonce.d.*personality*
+ and .gnu.linkonce.wi.* sections with .data and .debug_info for
+ relocatable link.
+
2006-09-20 Kai Tietz <Kai.Tietz@onevision.com>
* configure.in: Add new target x86_64-pc-mingw64.
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index a54ff58..738f21f 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -420,7 +420,7 @@ cat <<EOF
{
${RELOCATING+${DATA_START_SYMBOLS}}
*(.data${RELOCATING+ .data.* .gnu.linkonce.d.*})
- KEEP (*(.gnu.linkonce.d.*personality*))
+ ${RELOCATING+KEEP (*(.gnu.linkonce.d.*personality*))}
${CONSTRUCTING+SORT(CONSTRUCTORS)}
}
.data1 ${RELOCATING-0} : { *(.data1) }
@@ -486,7 +486,7 @@ cat <<EOF
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2 */
- .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
+ .debug_info 0 : { *(.debug_info${RELOCATING+ .gnu.linkonce.wi.*}) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line) }
.debug_frame 0 : { *(.debug_frame) }