diff options
author | Ian Lance Taylor <ian@airs.com> | 1998-06-13 15:15:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1998-06-13 15:15:13 +0000 |
commit | 2f300fe69e7a2525be55c5a1239e87c59be317ec (patch) | |
tree | 6ad3cd227c680a200c909f794fc2bde5442b0fac /binutils/.Sanitize | |
parent | b4cbaee405fce1979b6fd8d0a06e9f2798651bee (diff) | |
download | gdb-2f300fe69e7a2525be55c5a1239e87c59be317ec.zip gdb-2f300fe69e7a2525be55c5a1239e87c59be317ec.tar.gz gdb-2f300fe69e7a2525be55c5a1239e87c59be317ec.tar.bz2 |
add d30v sanitization to readelf
Diffstat (limited to 'binutils/.Sanitize')
-rw-r--r-- | binutils/.Sanitize | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/binutils/.Sanitize b/binutils/.Sanitize index f834737..29b66361 100644 --- a/binutils/.Sanitize +++ b/binutils/.Sanitize @@ -180,6 +180,34 @@ else done fi +d30v_files="readelf.c" +if ( echo $* | grep keep\-d30v > /dev/null ) ; then + for i in $d30v_files ; do + if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping d30v stuff in $i + fi + fi + done +else + for i in $d30v_files ; do + if test -r $i && (grep sanitize-d30v $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"d30v\" from $i... + fi + cp $i new + sed '/start\-sanitize\-d30v/,/end\-sanitize\-d30v/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 + # This must come after all other sanitizations. Re-sanitize the .pot # file. if [ -n "${verbose}" ]; then |