aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-08-22 22:32:21 +0000
committerJeff Law <law@redhat.com>1996-08-22 22:32:21 +0000
commit04c17a7559b2653f52c4a11c8222b253d699b56f (patch)
tree52c89a3d6cbd123460762ba6805ad6d9a3f1f184 /ld
parent64d538ce806461aed599498bab023b4ae15a2ae2 (diff)
downloadgdb-04c17a7559b2653f52c4a11c8222b253d699b56f.zip
gdb-04c17a7559b2653f52c4a11c8222b253d699b56f.tar.gz
gdb-04c17a7559b2653f52c4a11c8222b253d699b56f.tar.bz2
* 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.
Diffstat (limited to 'ld')
-rw-r--r--ld/.Sanitize35
-rw-r--r--ld/ChangeLog8
-rw-r--r--ld/Makefile.in9
-rw-r--r--ld/emulparams/.Sanitize8
4 files changed, 58 insertions, 2 deletions
diff --git a/ld/.Sanitize b/ld/.Sanitize
index bf804ae..157fc95 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 7098c54..88ee198 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 <shebs@andros.cygnus.com>
* mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
diff --git a/ld/Makefile.in b/ld/Makefile.in
index b9cb1f2..5ad95c6 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 4114ff4..402a9e1 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