X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bfd%2F.Sanitize;h=f1ef16e2d073168171fc099be8be3a0700ed1091;hb=5a608f5bf167e4f229ed43ce1a1208b29dd99332;hp=03e138d85ee05525a1434e6609146d3f54010950;hpb=c877bdf1a5ffb97d8f14eccfc4789b277579c4a4;p=platform%2Fupstream%2Fbinutils.git diff --git a/bfd/.Sanitize b/bfd/.Sanitize index 03e138d..f1ef16e 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -15,14 +15,6 @@ Do-first: -rce_files="cpu-rce.c aout-rce.c" - -if ( echo $* | grep keep\-rce > /dev/null ) ; then - keep_these_too="${rce_files} ${keep_these_too}" -else - lose_these_too="${rce_files} ${lose_these_too}" -fi - arc_files="cpu-arc.c elf32-arc.c" if ( echo $* | grep keep\-arc > /dev/null ) ; then @@ -31,6 +23,38 @@ 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 + +m32r_files="cpu-m32r.c elf32-m32r.c" + +if ( echo $* | grep keep\-m32r > /dev/null ) ; then + keep_these_too="${m32r_files} ${keep_these_too}" +else + lose_these_too="${m32r_files} ${lose_these_too}" +fi + +v850_files="cpu-v850.c elf32-v850.c" + +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 + +tic80_files="cpu-tic80.c coff-tic80.c" + +if ( echo $* | grep keep\-tic80 > /dev/null ) ; then + keep_these_too="${tic80_files} ${keep_these_too}" +else + lose_these_too="${tic80_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 @@ -45,6 +69,7 @@ ChangeLog.1 ChangeLog.2 Makefile.in PORTING +README TODO VERSION acconfig.h @@ -54,6 +79,7 @@ aout-adobe.c aout-arm.c aout-encap.c aout-ns32k.c +aout-sparcle.c aout-target.h aout0.c aout32.c @@ -100,6 +126,7 @@ coffgen.c cofflink.c coffswap.h config.bfd +config.h-vms config.in configure configure.bat @@ -118,6 +145,8 @@ cpu-i960.c cpu-m68k.c cpu-m88k.c cpu-mips.c +cpu-mn10200.c +cpu-mn10300.c cpu-ns32k.c cpu-powerpc.c cpu-rs6000.c @@ -143,10 +172,15 @@ elf32-i860.c elf32-m68k.c elf32-m88k.c elf32-mips.c +elf32-mn10200.c +elf32-mn10300.c elf32-ppc.c +elf32-sh.c elf32-sparc.c elf32.c +elf64-alpha.c elf64-gen.c +elf64-mips.c elf64-sparc.c elf64.c elfxx-target.h @@ -154,6 +188,12 @@ elfcode.h elfcore.h elflink.c elflink.h +evax.h +evax-alpha.c +evax-egsd.c +evax-emh.c +evax-etir.c +evax-misc.c filemode.c format.c freebsd.h @@ -200,6 +240,7 @@ m68klynx.c m68knetbsd.c m88kmach3.c makefile.dos +makefile.vms mipsbsd.c mpw-config.in mpw-make.sed @@ -229,6 +270,7 @@ pei-arm.c pei-i386.c pei-ppc.c peicode.h +ppcboot.c ptrace-core.c reloc.c reloc16.c @@ -240,11 +282,13 @@ som.h sparclynx.c sparcnetbsd.c srec.c +stabs.c stab-syms.c sunos.c syms.c sysdep.h targets.c +targmatch.sed tekhex.c trad-core.c versados.c @@ -255,23 +299,23 @@ Things-to-lose: Do-last: -rce_files="ChangeLog ChangeLog.2 Makefile.in archures.c bfd-in2.h config.bfd configure.in configure targets.c aoutx.h libaout.h" -if ( echo $* | grep keep\-rce > /dev/null ) ; then - for i in $rce_files ; do - if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then +arc_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\-arc > /dev/null ) ; then + for i in $arc_files ; do + if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Keeping rce stuff in $i + echo Keeping arc stuff in $i fi fi done else - for i in $rce_files ; do - if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then + for i in $arc_files ; do + if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then if [ -n "${verbose}" ] ; then - echo Removing traces of \"rce\" from $i... + echo Removing traces of \"arc\" from $i... fi cp $i new - sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new + sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover... @@ -283,23 +327,107 @@ else done fi -arc_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\-arc > /dev/null ) ; then - for i in $arc_files ; do - if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then +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 arc stuff in $i + echo Keeping d10v stuff in $i fi fi done else - for i in $arc_files ; do - if test ! -d $i && (grep sanitize-arc $i > /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 Removing traces of \"arc\" from $i... + echo Removing traces of \"d10v\" from $i... fi cp $i new - sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $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 + +m32r_files="ChangeLog Makefile.in config.bfd configure.in configure elf.c archures.c reloc.c targets.c bfd-in2.h libbfd.h" +if ( echo $* | grep keep\-m32r > /dev/null ) ; then + for i in $m32r_files ; do + if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping m32r stuff in $i + fi + fi + done +else + for i in $m32r_files ; do + if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"m32r\" from $i... + fi + cp $i new + sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/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 + +v850_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\-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 + +tic80_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure configure.in targets.c" +if ( echo $* | grep keep\-tic80 > /dev/null ) ; then + for i in $tic80_files ; do + if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping tic80 stuff in $i + fi + fi + done +else + for i in $tic80_files ; do + if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"tic80\" from $i... + fi + cp $i new + sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover...