From: nickc Date: Thu, 24 Apr 2003 15:25:24 +0000 (+0000) Subject: oops - omitted from previous delta X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=423f9bf7dfa9e68c20978e71a9b54f3c98797775;p=pf3gnuchains%2Fpf3gnuchains3x.git oops - omitted from previous delta --- diff --git a/ld/emulparams/h8300hn.sh b/ld/emulparams/h8300hn.sh new file mode 100644 index 0000000000..d349082336 --- /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 0000000000..4a75ff9f81 --- /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 0000000000..16364efab0 --- /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 0000000000..ddeec11685 --- /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 0000000000..e2c2954478 --- /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 0000000000..b2647ca405 --- /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