aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2003-10-07 23:30:20 +0000
committerBob Wilson <bob.wilson@acm.org>2003-10-07 23:30:20 +0000
commit398b851510528409aed200e40b8d3e52ab2182fd (patch)
treef5e58e193aa3ddba8d50a7ae49cb7085d6c773e8
parentb15b52efa349de28345f4db3a90b701a5b35ef18 (diff)
downloadgdb-398b851510528409aed200e40b8d3e52ab2182fd.zip
gdb-398b851510528409aed200e40b8d3e52ab2182fd.tar.gz
gdb-398b851510528409aed200e40b8d3e52ab2182fd.tar.bz2
* emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS,
OTHER_READWRITE_SECTIONS, OTHER_SECTIONS): Set section addresses to zero for relocatable links.
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/emulparams/elf32xtensa.sh14
2 files changed, 13 insertions, 7 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index d69c89e..fb616b9 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2003-10-07 Bob Wilson <bob.wilson@acm.org>
+
+ * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS,
+ OTHER_READWRITE_SECTIONS, OTHER_SECTIONS): Set section addresses to
+ zero for relocatable links.
+
2003-10-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.
diff --git a/ld/emulparams/elf32xtensa.sh b/ld/emulparams/elf32xtensa.sh
index f51ed38..76f9da8 100644
--- a/ld/emulparams/elf32xtensa.sh
+++ b/ld/emulparams/elf32xtensa.sh
@@ -15,18 +15,18 @@ MACHINE=
GENERATE_SHLIB_SCRIPT=yes
GENERATE_COMBRELOC_SCRIPT=yes
NO_SMALL_DATA=yes
-OTHER_READONLY_SECTIONS='
- .got.loc : { *(.got.loc) }
- .xt_except_table : { KEEP (*(.xt_except_table)) }
-'
+OTHER_READONLY_SECTIONS="
+ .got.loc ${RELOCATING-0} : { *(.got.loc) }
+ .xt_except_table ${RELOCATING-0} : { KEEP (*(.xt_except_table)) }
+"
OTHER_READWRITE_SECTIONS="
- .xt_except_desc :
+ .xt_except_desc ${RELOCATING-0} :
{
*(.xt_except_desc${RELOCATING+ .gnu.linkonce.h.*})
${RELOCATING+*(.xt_except_desc_end)}
}
"
OTHER_SECTIONS="
- .xt.lit : { *(.xt.lit${RELOCATING+ .xt.lit.* .gnu.linkonce.p.*}) }
- .xt.insn : { *(.xt.insn${RELOCATING+ .gnu.linkonce.x.*}) }
+ .xt.lit 0 : { *(.xt.lit${RELOCATING+ .xt.lit.* .gnu.linkonce.p.*}) }
+ .xt.insn 0 : { *(.xt.insn${RELOCATING+ .gnu.linkonce.x.*}) }
"