aboutsummaryrefslogtreecommitdiff
path: root/bfd/.Sanitize
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>1996-07-18 00:47:05 +0000
committerMartin Hunt <hunt@redhat.com>1996-07-18 00:47:05 +0000
commit50bd50d48f63e45bd8b85dbdee1c6f2c97796b2c (patch)
treec2311511dc2b2e617f20289c17b8f5bd00a9be8b /bfd/.Sanitize
parent6fb197de559b454be0e1c7044ad90b1b1c7db904 (diff)
downloadgdb-50bd50d48f63e45bd8b85dbdee1c6f2c97796b2c.zip
gdb-50bd50d48f63e45bd8b85dbdee1c6f2c97796b2c.tar.gz
gdb-50bd50d48f63e45bd8b85dbdee1c6f2c97796b2c.tar.bz2
start-sanitize-d10v
Wed Jul 17 14:51:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com> * Makefile.in (ALL_MACHINES): Add cpu-d10v.o (BFD32_BACKENDS) Add elf32-d10v.o * archures.c: Add bfd_d10v_arch. * bfd-in2.h: Add bfd_d10v_arch. * config.bfd (d10v-*-*): New target. * configure: (bfd_elf32_d10v_vec) New vector. * configure.in: (bfd_elf32_d10v_vec) New vector. * cpu-d10v.c: New file. * elf.c (prep_headers): Added case bfd_arch_d10v. * elf32-d10v.c: New file. * libbfd.h: Rebuild. * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L, BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define. * targets.c (bfd_elf32_d10v_vec): New vector. end-sanitize-d10v
Diffstat (limited to 'bfd/.Sanitize')
-rw-r--r--bfd/.Sanitize36
1 files changed, 36 insertions, 0 deletions
diff --git a/bfd/.Sanitize b/bfd/.Sanitize
index 7a12df7..b373059 100644
--- a/bfd/.Sanitize
+++ b/bfd/.Sanitize
@@ -23,6 +23,14 @@ else
lose_these_too="${arc_files} ${lose_these_too}"
fi
+d10v_files="cpu-d10v.c elf32-d10v.c"
+
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+ keep_these_too="${d10v_files} ${keep_these_too}"
+else
+ lose_these_too="${d10v_files} ${lose_these_too}"
+fi
+
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
@@ -287,6 +295,34 @@ else
done
fi
+d10v_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
+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
+
gm_files="ChangeLog ChangeLog.2 config.bfd"
if ( echo $* | grep keep\-gm > /dev/null ) ; then
for i in $gm_files ; do