aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/xstormy16.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/xstormy16.sc')
-rw-r--r--ld/scripttempl/xstormy16.sc22
1 files changed, 9 insertions, 13 deletions
diff --git a/ld/scripttempl/xstormy16.sc b/ld/scripttempl/xstormy16.sc
index 73d08b8..183cc67 100644
--- a/ld/scripttempl/xstormy16.sc
+++ b/ld/scripttempl/xstormy16.sc
@@ -54,7 +54,7 @@ test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
if [ -z "$MACHINE" ]; then OUTPUT_ARCH=${ARCH}; else OUTPUT_ARCH=${ARCH}:${MACHINE}; fi
test -z "${ELFSIZE}" && ELFSIZE=32
test -z "${ALIGNMENT}" && ALIGNMENT="${ELFSIZE} / 8"
-CTOR=".ctors ${CONSTRUCTING-0} :
+CTOR=".ctors :
{
${CONSTRUCTING+${CTOR_START}}
/* gcc uses crtbegin.o to find the start of
@@ -81,7 +81,7 @@ CTOR=".ctors ${CONSTRUCTING-0} :
${CONSTRUCTING+${CTOR_END}}
} > ROM"
-DTOR=" .dtors ${CONSTRUCTING-0} :
+DTOR=" .dtors :
{
${CONSTRUCTING+${DTOR_START}}
KEEP (*crtbegin.o(.dtors))
@@ -101,10 +101,6 @@ ${RELOCATING+ENTRY(${ENTRY})}
${RELOCATING+${LIB_SEARCH_DIRS}}
${RELOCATING+${EXECUTABLE_SYMBOLS}}
${RELOCATING+${INPUT_FILES}}
-${RELOCATING- /* For some reason, the Solaris linker makes bad executables
- if gld -r is used and the intermediate file has sections starting
- at non-zero addresses. Could be a Solaris ld bug, could be a GNU ld
- bug. But for now assigning the zero vmas works. */}
/* There are two memory regions we care about, one from 0 through 0x7F00
that is RAM and one from 0x8000 up which is ROM. */
@@ -116,7 +112,7 @@ MEMORY
SECTIONS
{
- .data ${RELOCATING-0} :
+ .data :
{
${RELOCATING+__rdata = .;}
${RELOCATING+__data = .;}
@@ -133,7 +129,7 @@ SECTIONS
${RELOCATING+PROVIDE (edata = .);}
${RELOCATING+__bss_start = .;}
${RELOCATING+${OTHER_BSS_SYMBOLS}}
- .bss ${RELOCATING-0} :
+ .bss :
{
*(.dynbss)
*(.bss)
@@ -153,9 +149,9 @@ SECTIONS
${RELOCATING+PROVIDE (end = .);}
/* Read-only sections in ROM. */
- .int_vec ${RELOCATING-0} : { *(.int_vec) } ${RELOCATING+> ROM}
+ .int_vec : { *(.int_vec) } ${RELOCATING+> ROM}
- .rodata ${RELOCATING-0} : { *(.rodata) ${RELOCATING+*(.rodata.*)} ${RELOCATING+*(.gnu.linkonce.r.*)} } ${RELOCATING+> ROM}
+ .rodata : { *(.rodata) ${RELOCATING+*(.rodata.*)} ${RELOCATING+*(.gnu.linkonce.r.*)} } ${RELOCATING+> ROM}
${RELOCATING+${CTOR}}
${RELOCATING+${DTOR}}
.jcr : { KEEP (*(.jcr)) } ${RELOCATING+> ROM}
@@ -163,7 +159,7 @@ SECTIONS
.gcc_except_table : { *(.gcc_except_table) } ${RELOCATING+> ROM}
.plt : { *(.plt) } ${RELOCATING+> ROM}
- .text ${RELOCATING-0} :
+ .text :
{
${RELOCATING+${TEXT_START_SYMBOLS}}
*(.text)
@@ -174,13 +170,13 @@ SECTIONS
${RELOCATING+*(.gnu.linkonce.t.*)}
${RELOCATING+${OTHER_TEXT_SECTIONS}}
} ${RELOCATING+> ROM =${NOP-0}}
- .init ${RELOCATING-0} :
+ .init :
{
${RELOCATING+${INIT_START}}
KEEP (*(.init))
${RELOCATING+${INIT_END}}
} ${RELOCATING+> ROM =${NOP-0}}
- .fini ${RELOCATING-0} :
+ .fini :
{
${RELOCATING+${FINI_START}}
KEEP (*(.fini))