aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1997-09-17 23:45:41 +0000
committerNick Clifton <nickc@redhat.com>1997-09-17 23:45:41 +0000
commit2e6fa283b4cb701a78f1b5a9b9c39db7ae025e57 (patch)
tree45907be7bba4f49b93114bec6beb0c8407072f7a /ld/scripttempl
parent03d532924421f3dcb3cfdb820e1be189aaf618e4 (diff)
downloadgdb-2e6fa283b4cb701a78f1b5a9b9c39db7ae025e57.zip
gdb-2e6fa283b4cb701a78f1b5a9b9c39db7ae025e57.tar.gz
gdb-2e6fa283b4cb701a78f1b5a9b9c39db7ae025e57.tar.bz2
Added support for the call table data area.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/.Sanitize69
1 files changed, 61 insertions, 8 deletions
diff --git a/ld/scripttempl/.Sanitize b/ld/scripttempl/.Sanitize
index 3e969d7..b4c16c6 100644
--- a/ld/scripttempl/.Sanitize
+++ b/ld/scripttempl/.Sanitize
@@ -31,14 +31,6 @@ else
lose_these_too="${tic80_files} ${lose_these_too}"
fi
-v850_files="v850.sc"
-
-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
-
# All files listed between the "Things-to-keep:" line and the
# "Do-last:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
@@ -90,6 +82,7 @@ sh.sc
sparccoff.sc
sparclynx.sc
st2000.sc
+v850.sc
vanilla.sc
w65.sc
z8000.sc
@@ -101,3 +94,63 @@ Things-to-lose:
# done.
Do-last:
+
+v850_files="v850.sc"
+
+if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
+ for i in $v850_files ; do
+ if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping v850eq stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $v850_files ; do
+ if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"v850eq\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/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
+if ( echo $* | grep keep\-v850e > /dev/null ) ; then
+ for i in $v850_files ; do
+ if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping v850e stuff in $i
+ fi
+ fi
+ done
+else
+ if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
+ true
+ else
+ for i in $v850_files ; do
+ if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"v850e\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/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
+fi
+