From 0dbc2a48b46677d805d6e62f5ee8df85a7868801 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 24 Apr 2003 15:25:24 +0000 Subject: [PATCH] oops - omitted from previous delta --- ld/emulparams/h8300hn.sh | 5 +++ ld/emulparams/h8300hnelf.sh | 2 + ld/emulparams/h8300sn.sh | 5 +++ ld/emulparams/h8300snelf.sh | 2 + ld/scripttempl/h8300hn.sc | 87 +++++++++++++++++++++++++++++++++++++ ld/scripttempl/h8300sn.sc | 87 +++++++++++++++++++++++++++++++++++++ 6 files changed, 188 insertions(+) create mode 100644 ld/emulparams/h8300hn.sh create mode 100644 ld/emulparams/h8300hnelf.sh create mode 100644 ld/emulparams/h8300sn.sh create mode 100644 ld/emulparams/h8300snelf.sh create mode 100644 ld/scripttempl/h8300hn.sc create mode 100644 ld/scripttempl/h8300sn.sc diff --git a/ld/emulparams/h8300hn.sh b/ld/emulparams/h8300hn.sh new file mode 100644 index 00000000000..d349082336c --- /dev/null +++ b/ld/emulparams/h8300hn.sh @@ -0,0 +1,5 @@ +SCRIPT_NAME=h8300hn +OUTPUT_FORMAT="coff-h8300" +TEXT_START_ADDR=0x8000 +TARGET_PAGE_SIZE=128 +ARCH=h8300 diff --git a/ld/emulparams/h8300hnelf.sh b/ld/emulparams/h8300hnelf.sh new file mode 100644 index 00000000000..4a75ff9f81a --- /dev/null +++ b/ld/emulparams/h8300hnelf.sh @@ -0,0 +1,2 @@ +. ${srcdir}/emulparams/h8300elf.sh +ARCH="h8300:h8300hn" diff --git a/ld/emulparams/h8300sn.sh b/ld/emulparams/h8300sn.sh new file mode 100644 index 00000000000..16364efab0b --- /dev/null +++ b/ld/emulparams/h8300sn.sh @@ -0,0 +1,5 @@ +SCRIPT_NAME=h8300sn +OUTPUT_FORMAT="coff-h8300" +TEXT_START_ADDR=0x8000 +TARGET_PAGE_SIZE=128 +ARCH=h8300 diff --git a/ld/emulparams/h8300snelf.sh b/ld/emulparams/h8300snelf.sh new file mode 100644 index 00000000000..ddeec116856 --- /dev/null +++ b/ld/emulparams/h8300snelf.sh @@ -0,0 +1,2 @@ +. ${srcdir}/emulparams/h8300elf.sh +ARCH="h8300:h8300sn" diff --git a/ld/scripttempl/h8300hn.sc b/ld/scripttempl/h8300hn.sc new file mode 100644 index 00000000000..e2c29544785 --- /dev/null +++ b/ld/scripttempl/h8300hn.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 diff --git a/ld/scripttempl/h8300sn.sc b/ld/scripttempl/h8300sn.sc new file mode 100644 index 00000000000..b2647ca4058 --- /dev/null +++ b/ld/scripttempl/h8300sn.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.30.2