From: Richard Sandiford Date: Tue, 10 Jun 2003 08:31:04 +0000 (+0000) Subject: * scripttempl/h8300sxn.sc: New file. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1b2d571cc51e05ca4ccaa32644be505d7b34e23;p=binutils-gdb.git * scripttempl/h8300sxn.sc: New file. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index b1b274600fd..3151bf0e453 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 00000000000..0b1bcf1196f --- /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