From 11effa691a7e2c35a80deb2983076b7432a4f065 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Mon, 10 Feb 1997 01:17:14 +0000 Subject: [PATCH] * emulparams/tic80coff.sh: New (dummy) file for TIc80. * scripttempl/tic80coff.sc: New (dummy) file for TIc80. * Makefile.in (etic80coff.c): Add target and rule to build it. * configure.tgt (tic80-*-coff): Set targ_emul to tic80coff. --- ld/.Sanitize | 29 +++++++++++++++++++++++++++++ ld/ChangeLog | 9 +++++++++ ld/configure.tgt | 5 +++++ ld/emulparams/.Sanitize | 8 ++++++++ ld/emulparams/tic80coff.sh | 5 +++++ ld/scripttempl/.Sanitize | 8 ++++++++ 6 files changed, 64 insertions(+) create mode 100644 ld/emulparams/tic80coff.sh diff --git a/ld/.Sanitize b/ld/.Sanitize index 6b46075bb0a..d8ab22cb0a2 100644 --- a/ld/.Sanitize +++ b/ld/.Sanitize @@ -202,6 +202,35 @@ else done fi +tic80_files="ChangeLog configure.tgt Makefile.in" + +if ( echo $* | grep keep\-tic80 > /dev/null ) ; then + for i in $tic80_files ; do + if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping tic80 stuff in $i + fi + fi + done +else + for i in $tic80_files ; do + if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"tic80\" from $i... + fi + cp $i new + sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new + if [ -n "${safe}" -a ! -f .Recover/$i ] ; then + if [ -n "${verbose}" ] ; then + echo Caching $i in .Recover... + fi + mv $i .Recover + fi + mv new $i + fi + done +fi + for i in * ; do if test ! -d $i && (grep sanitize $i > /dev/null) ; then echo '***' Some mentions of Sanitize are still left in $i! 1>&2 diff --git a/ld/ChangeLog b/ld/ChangeLog index 07c473d3824..024e4ac9897 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,12 @@ +start-sanitize-tic80 +Sun Feb 9 18:09:13 1997 Fred Fish + + * emulparams/tic80coff.sh: New (dummy) file for TIc80. + * scripttempl/tic80coff.sc: New (dummy) file for TIc80. + * Makefile.in (etic80coff.c): Add target and rule to build it. + * configure.tgt (tic80-*-coff): Set targ_emul to tic80coff. + +end-sanitize-tic80 Fri Jan 31 13:16:53 1997 Ian Lance Taylor * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for diff --git a/ld/configure.tgt b/ld/configure.tgt index 394f8911716..4b72bb96746 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -141,6 +141,8 @@ mips*vr5000-*-elf*) targ_emul=elf32b4300 ;; mips*el-*-elf*) targ_emul=elf32elmip ;; mips*-*-elf*) targ_emul=elf32ebmip ;; mips*-*-rtems*) targ_emul=elf32ebmip ;; +mips*el-*-linux*) targ_emul=elf32elmip ;; +mips*-*-linux*) targ_emul=elf32ebmip ;; mn10200-*-*) targ_emul=mn10200 ;; mn10300-*-*) targ_emul=mn10300 ;; alpha-*-linuxecoff*) targ_emul=alpha targ_extra_emuls=elf64alpha @@ -166,6 +168,9 @@ powerpcle-*-winnt*) targ_emul=ppcpe ;; powerpcle-*-cygwin32) targ_emul=ppcpe ;; powerpc-*-aix*) targ_emul=aixppc ;; rs6000-*-aix*) targ_emul=aixrs6 ;; +# start-sanitize-tic80 +tic80-*-coff) targ_emul=tic80coff ;; +# end-sanitize-tic80 # start-sanitize-v850 v850-*-*) targ_emul=v850 ;; # end-sanitize-v850 diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize index f177cba0377..c690aca8e4d 100644 --- a/ld/emulparams/.Sanitize +++ b/ld/emulparams/.Sanitize @@ -39,6 +39,14 @@ else lose_these_too="${m32r_files} ${lose_these_too}" fi +tic80_files="tic80coff.sh" + +if ( echo $* | grep keep\-tic80 > /dev/null ) ; then + keep_these_too="${tic80_files} ${keep_these_too}" +else + lose_these_too="${tic80_files} ${lose_these_too}" +fi + v850_files="v850.sh" if ( echo $* | grep keep\-v850 > /dev/null ) ; then diff --git a/ld/emulparams/tic80coff.sh b/ld/emulparams/tic80coff.sh new file mode 100644 index 00000000000..178f6c6ed24 --- /dev/null +++ b/ld/emulparams/tic80coff.sh @@ -0,0 +1,5 @@ +SCRIPT_NAME=tic80coff +OUTPUT_FORMAT="coff-tic80" +TEXT_START_ADDR=0x0 +TARGET_PAGE_SIZE=0x1000 +ARCH=tic80 diff --git a/ld/scripttempl/.Sanitize b/ld/scripttempl/.Sanitize index 11a99bd64cd..121dfacb072 100644 --- a/ld/scripttempl/.Sanitize +++ b/ld/scripttempl/.Sanitize @@ -23,6 +23,14 @@ else lose_these_too="${d10v_files} ${lose_these_too}" fi +tic80_files="tic80coff.sc" + +if ( echo $* | grep keep\-tic80 > /dev/null ) ; then + keep_these_too="${tic80_files} ${keep_these_too}" +else + lose_these_too="${tic80_files} ${lose_these_too}" +fi + v850_files="v850.sc" if ( echo $* | grep keep\-v850 > /dev/null ) ; then -- 2.30.2