From: Steve Chamberlain Date: Tue, 27 Apr 1993 01:37:02 +0000 (+0000) Subject: sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84d42ddd6118bae3fd014ec2549b6973973487dc;p=binutils-gdb.git sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH. --- diff --git a/ld/.Sanitize b/ld/.Sanitize index 3f463991598..a26680a8e6a 100644 --- a/ld/.Sanitize +++ b/ld/.Sanitize @@ -118,6 +118,9 @@ mkscript.c news.sh relax.c relax.h +sh.em +sh.sc-sh +sh.sh st2000.em st2000.sc-sh st2000.sh @@ -163,7 +166,10 @@ fi # # # $Log$ -# Revision 1.56 1993/04/09 17:44:54 sac +# Revision 1.57 1993/04/27 01:36:30 sac +# sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH. +# +# Revision 1.56 1993/04/09 17:44:54 sac # Support for the H8/500 # # Revision 1.55 1993/03/30 23:24:53 pesch diff --git a/ld/config/.Sanitize b/ld/config/.Sanitize index bde7b6d8331..a9d328c404a 100644 --- a/ld/config/.Sanitize +++ b/ld/config/.Sanitize @@ -15,6 +15,7 @@ Do-first: + # All files listed between the "Things-to-keep:" line and the # "Do-last:" line will be kept. All other files will be removed. # Directories listed in this section will have their own Sanitize @@ -26,6 +27,7 @@ Things-to-keep: coff-a29k.mt coff-h8300.mt coff-h8500.mt +coff-sh.mt delta88.mh dgux.mh ebmon29k.mt diff --git a/ld/config/coff-sh.mt b/ld/config/coff-sh.mt new file mode 100644 index 00000000000..94d752a850b --- /dev/null +++ b/ld/config/coff-sh.mt @@ -0,0 +1 @@ +EMUL=sh diff --git a/ld/sh.em b/ld/sh.em new file mode 100644 index 00000000000..7303cdd61e9 --- /dev/null +++ b/ld/sh.em @@ -0,0 +1,88 @@ +cat >em_${EMULATION_NAME}.c < ram} +.data : + { + *(.data) + ${RELOCATING+ _edata = . ; } + } ${RELOCATING+ > ram} +.bss : + { + ${RELOCATING+ _bss_start = . ;} + *(.bss) + *(COMMON) + ${RELOCATING+ _end = . ; } + } ${RELOCATING+ >ram} +.stack : + { + ${RELOCATING+ _stack = . ; } + *(.stack) + } ${RELOCATING+ > topram} +} +EOF + + + + diff --git a/ld/sh.sh b/ld/sh.sh new file mode 100755 index 00000000000..502dd8e0d00 --- /dev/null +++ b/ld/sh.sh @@ -0,0 +1,10 @@ +EMULATION_NAME=sh +SCRIPT_NAME=sh +OUTPUT_FORMAT="coff-sh" +TEXT_START_ADDR=0x8000 +PAGE_SIZE=128 +ARCH=sh +TEMPLATE_NAME=sh + + +