From e9525d967335a937c596bca942590c9794daaec1 Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Tue, 23 Jul 1996 18:00:39 +0000 Subject: [PATCH] start-sanitize-d10v Tue Jul 23 10:36:19 1996 Martin M. Hunt * Makefile.in (ed10velf.c): New target. * configure.tgt (d10v-*-elf*): New target. * emulparams/d10velf.sh: New file. end-sanitize-d10v --- ld/.Sanitize | 29 +++++++++++++++++++++++++++++ ld/ChangeLog | 8 ++++++++ ld/Makefile.in | 5 +++++ ld/configure.tgt | 3 +++ 4 files changed, 45 insertions(+) diff --git a/ld/.Sanitize b/ld/.Sanitize index 3d6589cbde9..a68cbf9d0cb 100644 --- a/ld/.Sanitize +++ b/ld/.Sanitize @@ -114,6 +114,35 @@ else done fi +d10v_files="ChangeLog configure.in configure.tgt Makefile.in" + +if ( echo $* | grep keep\-d10v > /dev/null ) ; then + for i in $d10v_files ; do + if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping d10v stuff in $i + fi + fi + done +else + for i in $d10v_files ; do + if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"d10v\" from $i... + fi + cp $i new + sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/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 99748b62a1b..05439137213 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +start-sanitize-d10v +Tue Jul 23 10:36:19 1996 Martin M. Hunt + + * Makefile.in (ed10velf.c): New target. + * configure.tgt (d10v-*-elf*): New target. + * emulparams/d10velf.sh: New file. + +end-sanitize-d10v Thu Jul 18 16:25:39 1996 Ian Lance Taylor * configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth diff --git a/ld/Makefile.in b/ld/Makefile.in index 345648177a4..b83befef4ae 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -379,6 +379,11 @@ earmpe.c: $(srcdir)/emulparams/armpe.sh \ ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS} ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)" +# start-sanitize-d10v +ed10velf.c: $(srcdir)/emulparams/d10velf.sh \ + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} d10velf "$(tdir_arcelf)" +# end-sanitize-d10v edelta68.c: $(srcdir)/emulparams/delta68.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS} ${GENSCRIPTS} delta68 "$(tdir_delta68)" diff --git a/ld/configure.tgt b/ld/configure.tgt index 63934f7ef6a..c094d2a3d81 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -15,6 +15,9 @@ arm-*-pe) targ_emul=armpe ;; # start-sanitize-arc arc-*-elf*) targ_emul=arcelf ;; # end-sanitize-arc +# start-sanitize-d10v +d10v-*-elf*) targ_emul=d10velf ;; +# end-sanitize-d10v sparc64-*-aout*) targ_emul=sparcaout ;; sparc64-*-elf*) targ_emul=elf64_sparc ;; sparc-sun-sunos4*) targ_emul=sun4 ;; -- 2.30.2