aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-09-29 16:46:00 +0000
committerNick Clifton <nickc@redhat.com>2004-09-29 16:46:00 +0000
commit1ee7cf4ceb02b99f57924fb74cb0a76b00365255 (patch)
treed600a0f7a5f8059a51e08e609065cb7e93c7c76e /ld/scripttempl
parentee21b650be3203a6ace921530e694ef045613d0a (diff)
downloadgdb-1ee7cf4ceb02b99f57924fb74cb0a76b00365255.zip
gdb-1ee7cf4ceb02b99f57924fb74cb0a76b00365255.tar.gz
gdb-1ee7cf4ceb02b99f57924fb74cb0a76b00365255.tar.bz2
xstormy16.sc: Only perform the assignments to the ROM region when not performing
a relocatable link. The ROM region does not start at address 0, but the sections will. Makefile.am: Fix linker script dependency for the generation of eelf32xstormy16.c.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/xstormy16.sc18
1 files changed, 9 insertions, 9 deletions
diff --git a/ld/scripttempl/xstormy16.sc b/ld/scripttempl/xstormy16.sc
index a74df07..21c8f61 100644
--- a/ld/scripttempl/xstormy16.sc
+++ b/ld/scripttempl/xstormy16.sc
@@ -152,15 +152,15 @@ SECTIONS
${RELOCATING+PROVIDE (end = .);}
/* Read-only sections in ROM. */
- .int_vec ${RELOCATING-0} : { *(.int_vec) } > ROM
+ .int_vec ${RELOCATING-0} : { *(.int_vec) } ${RELOCATING+> ROM}
- .rodata ${RELOCATING-0} : { *(.rodata) ${RELOCATING+*(.rodata.*)} ${RELOCATING+*(.gnu.linkonce.r.*)} } > ROM
+ .rodata ${RELOCATING-0} : { *(.rodata) ${RELOCATING+*(.rodata.*)} ${RELOCATING+*(.gnu.linkonce.r.*)} } ${RELOCATING+> ROM}
${RELOCATING+${CTOR}}
${RELOCATING+${DTOR}}
- .jcr : { KEEP (*(.jcr)) } > ROM
- .eh_frame : { KEEP (*(.eh_frame)) } > ROM
- .gcc_except_table : { *(.gcc_except_table) } > ROM
- .plt : { *(.plt) } > ROM
+ .jcr : { KEEP (*(.jcr)) } ${RELOCATING+> ROM}
+ .eh_frame : { KEEP (*(.eh_frame)) } ${RELOCATING+> ROM}
+ .gcc_except_table : { *(.gcc_except_table) } ${RELOCATING+> ROM}
+ .plt : { *(.plt) } ${RELOCATING+> ROM}
.text ${RELOCATING-0} :
{
@@ -172,19 +172,19 @@ SECTIONS
*(.gnu.warning)
${RELOCATING+*(.gnu.linkonce.t.*)}
${RELOCATING+${OTHER_TEXT_SECTIONS}}
- } > ROM =${NOP-0}
+ } ${RELOCATING+> ROM =${NOP-0}}
.init ${RELOCATING-0} :
{
${RELOCATING+${INIT_START}}
KEEP (*(.init))
${RELOCATING+${INIT_END}}
- } > ROM =${NOP-0}
+ } ${RELOCATING+> ROM =${NOP-0}}
.fini ${RELOCATING-0} :
{
${RELOCATING+${FINI_START}}
KEEP (*(.fini))
${RELOCATING+${FINI_END}}
- } > ROM =${NOP-0}
+ } ${RELOCATING+> ROM =${NOP-0}}
${RELOCATING+PROVIDE (__etext = .);}
${RELOCATING+PROVIDE (_etext = .);}
${RELOCATING+PROVIDE (etext = .);}