* ldlang.c (lang_finish): If the entry symbol is not found, try
[binutils-gdb.git] / ld / scripttempl / .Sanitize
1 # .Sanitize for devo/ld/scripttempl
2
3 # Each directory to survive its way into a release will need a file
4 # like this one called "./.Sanitize". All keyword lines must exist,
5 # and must exist in the order specified by this file. Each directory
6 # in the tree will be processed, top down, in the following order.
7
8 # Hash started lines like this one are comments and will be deleted
9 # before anything else is done. Blank lines will also be squashed
10 # out.
11
12 # The lines between the "Do-first:" line and the "Things-to-keep:"
13 # line are executed as a /bin/sh shell script before anything else is
14 # done in this directory.
15
16 Do-first:
17
18 d30v_files="elfd30v.sc"
19 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
20 keep_these_too="${d30v_files} ${keep_these_too}"
21 else
22 lose_these_too="${d30v_files} ${lose_these_too}"
23 fi
24
25 tic80_files="tic80coff.sc"
26 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
27 keep_these_too="${tic80_files} ${keep_these_too}"
28 else
29 lose_these_too="${tic80_files} ${lose_these_too}"
30 fi
31
32 # All files listed between the "Things-to-keep:" line and the
33 # "Do-last:" line will be kept. All other files will be removed.
34 # Directories listed in this section will have their own Sanitize
35 # called. Directories not listed will be removed in their entirety
36 # with rm -rf.
37
38 Things-to-keep:
39
40 README
41 a29k.sc
42 aix.sc
43 alpha.sc
44 aout.sc
45 armaout.sc
46 armcoff.sc
47 delta68.sc
48 ebmon29k.sc
49 elf.sc
50 elfd10v.sc
51 elfppc.sc
52 go32coff.sc
53 h8300.sc
54 h8300h.sc
55 h8300s.sc
56 h8500.sc
57 h8500b.sc
58 h8500c.sc
59 h8500m.sc
60 h8500s.sc
61 hppaelf.sc
62 i386coff.sc
63 i386go32.sc
64 i386lynx.sc
65 i386msdos.sc
66 i960.sc
67 m68kaux.sc
68 m68kcoff.sc
69 m68klynx.sc
70 m88kbcs.sc
71 mips.sc
72 mipsbsd.sc
73 nw.sc
74 pe.sc
75 ppcpe.sc
76 psos.sc
77 riscix.sc
78 sa29200.sc
79 sh.sc
80 sparccoff.sc
81 sparclynx.sc
82 st2000.sc
83 tic30aout.sc
84 tic30coff.sc
85 v850.sc
86 vanilla.sc
87 w65.sc
88 z8000.sc
89
90 Things-to-lose:
91
92
93
94 # The lines between the "Do-last:" line and the end of the file
95 # are executed as a /bin/sh shell script after everything else is
96 # done.
97
98 Do-last:
99
100 v850_files="v850.sc"
101 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
102 for i in $v850_files ; do
103 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
104 if [ -n "${verbose}" ] ; then
105 echo Keeping v850e stuff in $i
106 fi
107 fi
108 done
109 else
110 for i in $v850_files ; do
111 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
112 if [ -n "${verbose}" ] ; then
113 echo Removing traces of \"v850e\" from $i...
114 fi
115 cp $i new
116 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
117 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
118 if [ -n "${verbose}" ] ; then
119 echo Caching $i in .Recover...
120 fi
121 mv $i .Recover
122 fi
123 mv new $i
124 fi
125 done
126 fi
127
128 # eof