* coff-h8300.c: Remove #if 0 code.
(compatable): Don't allow mixing/matching of different architectures. Just stuff I noticed. start-sanitize-h8s * archures.c (bfd_mach_h8300s): Add. * bfd-in2.h: Rebuilt. * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too. (BADMAG): Likewise. (h8300_reloc16_estimate): Likewise. (h8300_reloc16_extra_cases): Likewise. (h8300_bfd_link_add_symbols): Likewise. * coffcode.h (coff_set_arch_mach_hook): Likewise. (coff_set_flags): Likewise. * cpu-h8300.c (h8300_scan): Likewise. Add H8/S to bfd_h8300_arch list. end-sanitize-h8s H8/S support. Sanitized away until we know its official status.
This commit is contained in:
parent
24b018ee72
commit
2459179f7a
@ -314,6 +314,34 @@ else
|
||||
done
|
||||
fi
|
||||
|
||||
h8s_files="archures.c coff-h8300.c coffcode.h cpu-h8300.c ChangeLog"
|
||||
if ( echo $* | grep keep\-h8s > /dev/null ) ; then
|
||||
for i in $h8s_files ; do
|
||||
if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Keeping h8s stuff in $i
|
||||
fi
|
||||
fi
|
||||
done
|
||||
else
|
||||
for i in $h8s_files ; do
|
||||
if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
|
||||
if [ -n "${verbose}" ] ; then
|
||||
echo Removing traces of \"h8s\" from $i...
|
||||
fi
|
||||
cp $i new
|
||||
sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/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
|
||||
|
Loading…
Reference in New Issue
Block a user