X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bfd%2F.Sanitize;h=f1ef16e2d073168171fc099be8be3a0700ed1091;hb=5a608f5bf167e4f229ed43ce1a1208b29dd99332;hp=4c38bfeea69ca6bde6daf10024a7b5a600c0c470;hpb=2459179f7a082da7b16b89f914c055f3656c54c5;p=platform%2Fupstream%2Fbinutils.git diff --git a/bfd/.Sanitize b/bfd/.Sanitize index 4c38bfe..f1ef16e 100644 --- a/bfd/.Sanitize +++ b/bfd/.Sanitize @@ -23,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 @@ -37,6 +69,7 @@ ChangeLog.1 ChangeLog.2 Makefile.in PORTING +README TODO VERSION acconfig.h @@ -46,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 @@ -111,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 @@ -136,9 +172,13 @@ 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 @@ -248,6 +288,7 @@ sunos.c syms.c sysdep.h targets.c +targmatch.sed tekhex.c trad-core.c versados.c @@ -286,23 +327,23 @@ else done fi -gm_files="ChangeLog ChangeLog.2 config.bfd" -if ( echo $* | grep keep\-gm > /dev/null ) ; then - for i in $gm_files ; do - if test ! -d $i && (grep sanitize-gm $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 gm stuff in $i + echo Keeping d10v stuff in $i fi fi done else - for i in $gm_files ; do - if test ! -d $i && (grep sanitize-gm $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 \"gm\" from $i... + echo Removing traces of \"d10v\" from $i... fi cp $i new - sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/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... @@ -314,23 +355,107 @@ 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 +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 h8s stuff in $i + echo Keeping m32r stuff in $i fi fi done else - for i in $h8s_files ; do - if test ! -d $i && (grep sanitize-h8s $i > /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 Removing traces of \"h8s\" from $i... + echo Removing traces of \"m32r\" from $i... fi cp $i new - sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $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... + 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 + if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping gm stuff in $i + fi + fi + done +else + for i in $gm_files ; do + if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"gm\" from $i... + fi + cp $i new + sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new if [ -n "${safe}" -a ! -f .Recover/$i ] ; then if [ -n "${verbose}" ] ; then echo Caching $i in .Recover...