aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tiemann <tiemann@cygnus>1994-11-24 22:02:18 +0000
committerMichael Tiemann <tiemann@cygnus>1994-11-24 22:02:18 +0000
commit5fa60968605904d23a6ce37901c9710295baf0b0 (patch)
tree12d33b2a3b3efff2e0732e9f10733da49aafc588
parent9f554efd623851a218c9469065952d6014c7624a (diff)
downloadgdb-5fa60968605904d23a6ce37901c9710295baf0b0.zip
gdb-5fa60968605904d23a6ce37901c9710295baf0b0.tar.gz
gdb-5fa60968605904d23a6ce37901c9710295baf0b0.tar.bz2
Recognize and sanitize r16 as a target.
-rw-r--r--ld/.Sanitize36
-rw-r--r--ld/configure.in4
2 files changed, 40 insertions, 0 deletions
diff --git a/ld/.Sanitize b/ld/.Sanitize
index 3ef50a7..b01e83e 100644
--- a/ld/.Sanitize
+++ b/ld/.Sanitize
@@ -106,4 +106,40 @@ else
done
fi
+r16_files = "configure.in"
+
+if ( echo $* | grep keep\-r16 > /dev/null ) ; then
+ for i in $r16_files ; do
+ if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping r16 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $r16_files ; do
+ if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"r16\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/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/configure.in b/ld/configure.in
index 1d1c73c..00fef33 100644
--- a/ld/configure.in
+++ b/ld/configure.in
@@ -89,12 +89,16 @@ case "${targ}" in
h8300h-*-hms) ld_target=cf-h8300h ;;
h8500-*-hms) ld_target=coff-h8500 ;;
sh-*-*) ld_target=coff-sh ;;
+# start-sanitize-r16
+ r16-*-*) ld_target=r16-aout ;;
+# end-sanitize-r16
m68k-sony-*) ld_target=news ;;
m68k-hp-bsd*) ld_target=hp300bsd ;;
m68*-*-aout) ld_target=m68k ;;
m68*-*-coff) ld_target=m68k-coff ;;
m68*-*-hpux*) ld_target=hp300hpux ;;
m68*-*-lynxos*) ld_target=m68k-lynx ;;
+ m68*-*-netbsd*) ld_target=m68k-nbsd ;;
m68*-*-*)
echo '***' "Unknown m68k target vendor for ld:" ${target_vendor} 1>&2
exit 1 ;;