aboutsummaryrefslogtreecommitdiff
path: root/bfd/.Sanitize
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-02-18 17:09:13 +0000
committerIan Lance Taylor <ian@airs.com>1994-02-18 17:09:13 +0000
commit99ec1f66c17e5f363b18a546da336bf3932fc41e (patch)
tree31ab85c7bb48f2b806fefd520f3ceb8a71c2d977 /bfd/.Sanitize
parentf42f505b519b49687be2ae1b360d88258a159b5c (diff)
downloadgdb-99ec1f66c17e5f363b18a546da336bf3932fc41e.zip
gdb-99ec1f66c17e5f363b18a546da336bf3932fc41e.tar.gz
gdb-99ec1f66c17e5f363b18a546da336bf3932fc41e.tar.bz2
start-sanitize-powerpc-netware
Support for PowerPC NetWare. * config.bfd (powerpc-*-netware*): New target; use ppc-nlm. * config/ppc-nlm.mt: New file. * configure.in (nlm32_powerpc_vec): New target vector; use nlm32-powerpc.o, nlm32.o, nlm.o. * targets.c (nlm32_powerpc_vec): Declare. * Makefile.in (BFD32_BACKENDS): Add nlm32-powerpc.o. (CFILES): Should add nlm32-powerpc.c, but didn't, because the dependencies can't be sanitized. end-sanitize-powerpc-netware Initial support for PowerPC ELF. Done without an ABI, and probably to be changed when I get an ABI. * config.bfd (powerpc-*-sysv4*): New target; use ppc-elf. * config/ppc-elf.mt: New file. * configure.in (bfd_elf32_powerpc_vec): New target vector; use elf32-powerpc.o, elf32.o, elf.o. * elf32-powerpc.c: New file. * elfcode.h (prep_headers): Add bfd_arch_powerpc case. (elf_set_arch_mach): Likewise. * targets.c (bfd_elf32_powerpc_vec): Declare. * Makefile.in (BFD32_BACKENDS): Add elf32-powerpc.o. (CFILES): Add elf32-powerpc.c. Rebuilt dependencies.
Diffstat (limited to 'bfd/.Sanitize')
-rw-r--r--bfd/.Sanitize30
1 files changed, 30 insertions, 0 deletions
diff --git a/bfd/.Sanitize b/bfd/.Sanitize
index 26b7c1f..c547528 100644
--- a/bfd/.Sanitize
+++ b/bfd/.Sanitize
@@ -33,6 +33,12 @@ else
lose_these_too="mpw-xconfig.in ChangeLog.gm ${lose_these_too}"
fi
+if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then
+ keep_these_too="nlm32-powerpc.c ${keep_these_too}"
+else
+ lose_these_too="nlm32-powerpc.c ${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
@@ -124,6 +130,7 @@ elf32-i860.c
elf32-m68k.c
elf32-m88k.c
elf32-mips.c
+elf32-powerpc.c
elf32-sparc.c
elf32-target.h
elf32.c
@@ -248,4 +255,27 @@ else
fi
+ppcfiles="ChangeLog Makefile.in configure.in config.bfd targets.c"
+if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping PowerPC NetWare stuff in $ppcfiles.
+ fi
+else
+ if [ -n "${verbose}" ]; then
+ echo -n Removing PowerPC NetWare in `pwd`:
+ fi
+ for f in $ppcfiles ; do
+ if [ -n "${verbose}" ] ; then
+ echo -n " " $f
+ fi
+ sed '/start\-sanitize\-powerpc\-netware/,/end\-sanitize\-powerpc\-netware/d' < $f > new
+ if [ -n "${safe}" ] ; then
+ mv $f .Recover
+ fi
+ mv new $f
+ done
+ chmod a+x config.bfd
+fi
+
+
# End of file.