From d1b2d571cc51e05ca4ccaa32644be505d7b34e23 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 10 Jun 2003 08:31:04 +0000 Subject: [PATCH] * scripttempl/h8300sxn.sc: New file. --- ld/ChangeLog | 1 + ld/scripttempl/h8300sxn.sc | 87 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 ld/scripttempl/h8300sxn.sc diff --git a/ld/ChangeLog b/ld/ChangeLog index b1b274600f..3151bf0e45 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -5,6 +5,7 @@ (eh8300sxn.c, eh8300sxnelf.c): New rules. * Makefile.in: Regenerate. * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files. + * scripttempl/h8300sxn.sc: New file. 2003-06-10 Alan Modra diff --git a/ld/scripttempl/h8300sxn.sc b/ld/scripttempl/h8300sxn.sc new file mode 100644 index 0000000000..0b1bcf1196 --- /dev/null +++ b/ld/scripttempl/h8300sxn.sc @@ -0,0 +1,87 @@ +TORS=".tors : + { + ___ctors = . ; + *(.ctors) + ___ctors_end = . ; + ___dtors = . ; + *(.dtors) + ___dtors_end = . ; + } > ram" + +cat < vectors} + +.text : + { + *(.rodata) + *(.text) + *(.strings) + ${RELOCATING+ _etext = . ; } + } ${RELOCATING+ > ram} + +${CONSTRUCTING+${TORS}} + +.data : + { + *(.data) + *(.tiny) + ${RELOCATING+ _edata = . ; } + } ${RELOCATING+ > ram} + +.bss : + { + ${RELOCATING+ _bss_start = . ;} + *(.bss) + *(COMMON) + ${RELOCATING+ _end = . ; } + } ${RELOCATING+ >ram} + +.stack : + { + ${RELOCATING+ _stack = . ; } + *(.stack) + } ${RELOCATING+ > topram} + +.eight : + { + *(.eight) + } ${RELOCATING+ > eight} + +.stab 0 ${RELOCATING+(NOLOAD)} : + { + [ .stab ] + } + +.stabstr 0 ${RELOCATING+(NOLOAD)} : + { + [ .stabstr ] + } +} +EOF -- 2.34.1