From 04c17a7559b2653f52c4a11c8222b253d699b56f Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 22 Aug 1996 22:32:21 +0000 Subject: [PATCH] * Makefile.in (ev850.c): New target. * configure.tgt (v850-*-*): New target. * emulparams/v850.sh: New file. No, it doesn't work (gas doesn't even emit relocs yet), but having a "ld" that at least creates an executable image greatly helps the gcc testsuite. --- ld/.Sanitize | 35 +++++++++++++++++++++++++++++++++++ ld/ChangeLog | 8 ++++++++ ld/Makefile.in | 9 +++++++-- ld/emulparams/.Sanitize | 8 ++++++++ 4 files changed, 58 insertions(+), 2 deletions(-) diff --git a/ld/.Sanitize b/ld/.Sanitize index bf804aeccd2..157fc95fa94 100644 --- a/ld/.Sanitize +++ b/ld/.Sanitize @@ -151,5 +151,40 @@ for i in * ; do fi done +v850_files="ChangeLog configure.tgt Makefile.in" + +if ( echo $* | grep keep\-v850 > /dev/null ) ; then + for i in $v850_files ; do + if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping v850 stuff in $i + fi + fi + done +else + for i in $v850_files ; do + if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"v850\" from $i... + fi + cp $i new + sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/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 + fi +done + # # End of file. diff --git a/ld/ChangeLog b/ld/ChangeLog index 7098c546070..88ee198c15b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +start-sanitize-v850 +Thu Aug 22 16:29:28 1996 Jeffrey A Law (law@cygnus.com) + + * Makefile.in (ev850.c): New target. + * configure.tgt (v850-*-*): New target. + * emulparams/v850.sh: New file. + +end-sanitize-v850 Thu Aug 22 11:16:02 1996 Stan Shebs * mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit. diff --git a/ld/Makefile.in b/ld/Makefile.in index b9cb1f23963..5ad95c67660 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -382,7 +382,7 @@ ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \ # start-sanitize-d10v ed10velf.c: $(srcdir)/emulparams/d10velf.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} - ${GENSCRIPTS} d10velf "$(tdir_arcelf)" + ${GENSCRIPTS} d10velf "$(tdir_d10v)" # end-sanitize-d10v edelta68.c: $(srcdir)/emulparams/delta68.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS} @@ -609,6 +609,11 @@ evax.c: $(srcdir)/emulparams/vax.sh \ evsta.c: $(srcdir)/emulparams/vsta.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} ${GENSCRIPTS} vsta "$(tdir_vsta)" +# start-sanitize-v850 +ev850.c: $(srcdir)/emulparams/v850.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} v850 "$(tdir_v850)" +# end-sanitize-v850 ew65.c: $(srcdir)/emulparams/w65.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS} ${GENSCRIPTS} w65 "$(tdir_w65)" @@ -1043,7 +1048,7 @@ mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h \ ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h ldmain.h \ - ldmisc.h + ldmisc.h ldexp.h ldlang.h fnmatch.o: fnmatch.c ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize index 4114ff4800d..402a9e1000e 100644 --- a/ld/emulparams/.Sanitize +++ b/ld/emulparams/.Sanitize @@ -31,6 +31,14 @@ else lose_these_too="${d10v_files} ${lose_these_too}" fi +v850_files="v850.sh" + +if ( echo $* | grep keep\-v850 > /dev/null ) ; then + keep_these_too="${v850_files} ${keep_these_too}" +else + lose_these_too="${v850_files} ${lose_these_too}" +fi + # 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 -- 2.30.2