* reloc.c: Add m32r relocs.
[binutils-gdb.git] / bfd / .Sanitize
1 # .Sanitize for devo/bfd.
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 arc_files="cpu-arc.c elf32-arc.c"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22 else
23 lose_these_too="${arc_files} ${lose_these_too}"
24 fi
25
26 d10v_files="cpu-d10v.c elf32-d10v.c"
27
28 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
29 keep_these_too="${d10v_files} ${keep_these_too}"
30 else
31 lose_these_too="${d10v_files} ${lose_these_too}"
32 fi
33
34 m32r_files="cpu-m32r.c elf32-m32r.c"
35
36 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
37 keep_these_too="${m32r_files} ${keep_these_too}"
38 else
39 lose_these_too="${m32r_files} ${lose_these_too}"
40 fi
41
42 v850_files="cpu-v850.c elf32-v850.c"
43
44 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
45 keep_these_too="${v850_files} ${keep_these_too}"
46 else
47 lose_these_too="${v850_files} ${lose_these_too}"
48 fi
49
50 # All files listed between the "Things-to-keep:" line and the
51 # "Files-to-sed:" line will be kept. All other files will be removed.
52 # Directories listed in this section will have their own Sanitize
53 # called. Directories not listed will be removed in their entirety
54 # with rm -rf.
55
56 Things-to-keep:
57
58 COPYING
59 ChangeLog
60 ChangeLog.1
61 ChangeLog.2
62 Makefile.in
63 PORTING
64 TODO
65 VERSION
66 acconfig.h
67 aclocal.m4
68 aix386-core.c
69 aout-adobe.c
70 aout-arm.c
71 aout-encap.c
72 aout-ns32k.c
73 aout-sparcle.c
74 aout-target.h
75 aout0.c
76 aout32.c
77 aout64.c
78 aoutf1.h
79 aoutx.h
80 archive.c
81 archures.c
82 bfd-in.h
83 bfd-in2.h
84 bfd.c
85 binary.c
86 bout.c
87 cache.c
88 cf-i386lynx.c
89 cf-m68klynx.c
90 cf-sparclynx.c
91 cisco-core.c
92 coff-a29k.c
93 coff-alpha.c
94 coff-apollo.c
95 coff-arm.c
96 coff-aux.c
97 coff-go32.c
98 coff-h8300.c
99 coff-h8500.c
100 coff-i386.c
101 coff-i860.c
102 coff-i960.c
103 coff-m68k.c
104 coff-m88k.c
105 coff-mips.c
106 coff-pmac.c
107 coff-ppc.c
108 coff-rs6000.c
109 coff-sh.c
110 coff-sparc.c
111 coff-u68k.c
112 coff-we32k.c
113 coff-w65.c
114 coff-z8k.c
115 coffcode.h
116 coffgen.c
117 cofflink.c
118 coffswap.h
119 config.bfd
120 config.h-vms
121 config.in
122 configure
123 configure.bat
124 configure.host
125 configure.in
126 corefile.c
127 cpu-a29k.c
128 cpu-alpha.c
129 cpu-arm.c
130 cpu-h8300.c
131 cpu-h8500.c
132 cpu-hppa.c
133 cpu-i386.c
134 cpu-i860.c
135 cpu-i960.c
136 cpu-m68k.c
137 cpu-m88k.c
138 cpu-mips.c
139 cpu-ns32k.c
140 cpu-powerpc.c
141 cpu-rs6000.c
142 cpu-sh.c
143 cpu-sparc.c
144 cpu-vax.c
145 cpu-we32k.c
146 cpu-w65.c
147 cpu-z8k.c
148 demo64.c
149 dep-in.sed
150 doc
151 ecoff.c
152 ecofflink.c
153 ecoffswap.h
154 elf-bfd.h
155 elf.c
156 elf32-gen.c
157 elf32-hppa.c
158 elf32-hppa.h
159 elf32-i386.c
160 elf32-i860.c
161 elf32-m68k.c
162 elf32-m88k.c
163 elf32-mips.c
164 elf32-ppc.c
165 elf32-sh.c
166 elf32-sparc.c
167 elf32.c
168 elf64-alpha.c
169 elf64-gen.c
170 elf64-mips.c
171 elf64-sparc.c
172 elf64.c
173 elfxx-target.h
174 elfcode.h
175 elfcore.h
176 elflink.c
177 elflink.h
178 evax.h
179 evax-alpha.c
180 evax-egsd.c
181 evax-emh.c
182 evax-etir.c
183 evax-misc.c
184 filemode.c
185 format.c
186 freebsd.h
187 gen-aout.c
188 genlink.h
189 hash.c
190 host-aout.c
191 hosts
192 hp300bsd.c
193 hp300hpux.c
194 hppa_stubs.h
195 hppabsd-core.c
196 hpux-core.c
197 i386aout.c
198 i386bsd.c
199 i386dynix.c
200 i386freebsd.c
201 i386linux.c
202 i386netbsd.c
203 i386lynx.c
204 i386mach3.c
205 i386msdos.c
206 i386os9k.c
207 ieee.c
208 ihex.c
209 init.c
210 irix-core.c
211 libaout.h
212 libbfd-in.h
213 libbfd.c
214 libbfd.h
215 libcoff-in.h
216 libcoff.h
217 libecoff.h
218 libhppa.h
219 libieee.h
220 libnlm.h
221 liboasys.h
222 linker.c
223 lynx-core.c
224 m68k4knetbsd.c
225 m68klinux.c
226 m68klynx.c
227 m68knetbsd.c
228 m88kmach3.c
229 makefile.dos
230 makefile.vms
231 mipsbsd.c
232 mpw-config.in
233 mpw-make.sed
234 newsos3.c
235 netbsd-core.c
236 netbsd.h
237 nlm-target.h
238 nlm.c
239 nlm32-alpha.c
240 nlm32-i386.c
241 nlm32-ppc.c
242 nlm32-sparc.c
243 nlm32.c
244 nlm64.c
245 nlmcode.h
246 nlmswap.h
247 ns32k.h
248 ns32knetbsd.c
249 oasys.c
250 opncls.c
251 osf-core.c
252 pc532-mach.c
253 pe-arm.c
254 pe-i386.c
255 pe-ppc.c
256 pei-arm.c
257 pei-i386.c
258 pei-ppc.c
259 peicode.h
260 ppcboot.c
261 ptrace-core.c
262 reloc.c
263 reloc16.c
264 riscix.c
265 rs6000-core.c
266 section.c
267 som.c
268 som.h
269 sparclynx.c
270 sparcnetbsd.c
271 srec.c
272 stabs.c
273 stab-syms.c
274 sunos.c
275 syms.c
276 sysdep.h
277 targets.c
278 tekhex.c
279 trad-core.c
280 versados.c
281 xcofflink.c
282
283 Things-to-lose:
284
285
286 Do-last:
287
288 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"
289 if ( echo $* | grep keep\-arc > /dev/null ) ; then
290 for i in $arc_files ; do
291 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
292 if [ -n "${verbose}" ] ; then
293 echo Keeping arc stuff in $i
294 fi
295 fi
296 done
297 else
298 for i in $arc_files ; do
299 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
300 if [ -n "${verbose}" ] ; then
301 echo Removing traces of \"arc\" from $i...
302 fi
303 cp $i new
304 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
305 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
306 if [ -n "${verbose}" ] ; then
307 echo Caching $i in .Recover...
308 fi
309 mv $i .Recover
310 fi
311 mv new $i
312 fi
313 done
314 fi
315
316 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"
317 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
318 for i in $d10v_files ; do
319 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
320 if [ -n "${verbose}" ] ; then
321 echo Keeping d10v stuff in $i
322 fi
323 fi
324 done
325 else
326 for i in $d10v_files ; do
327 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
328 if [ -n "${verbose}" ] ; then
329 echo Removing traces of \"d10v\" from $i...
330 fi
331 cp $i new
332 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
333 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
334 if [ -n "${verbose}" ] ; then
335 echo Caching $i in .Recover...
336 fi
337 mv $i .Recover
338 fi
339 mv new $i
340 fi
341 done
342 fi
343
344 m32r_files="ChangeLog Makefile.in config.bfd configure.in configure elf.c archures.c reloc.c targets.c bfd-in2.h libbfd.h"
345 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
346 for i in $m32r_files ; do
347 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
348 if [ -n "${verbose}" ] ; then
349 echo Keeping m32r stuff in $i
350 fi
351 fi
352 done
353 else
354 for i in $m32r_files ; do
355 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
356 if [ -n "${verbose}" ] ; then
357 echo Removing traces of \"m32r\" from $i...
358 fi
359 cp $i new
360 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
361 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
362 if [ -n "${verbose}" ] ; then
363 echo Caching $i in .Recover...
364 fi
365 mv $i .Recover
366 fi
367 mv new $i
368 fi
369 done
370 fi
371
372 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"
373 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
374 for i in $v850_files ; do
375 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
376 if [ -n "${verbose}" ] ; then
377 echo Keeping v850 stuff in $i
378 fi
379 fi
380 done
381 else
382 for i in $v850_files ; do
383 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
384 if [ -n "${verbose}" ] ; then
385 echo Removing traces of \"v850\" from $i...
386 fi
387 cp $i new
388 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
389 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
390 if [ -n "${verbose}" ] ; then
391 echo Caching $i in .Recover...
392 fi
393 mv $i .Recover
394 fi
395 mv new $i
396 fi
397 done
398 fi
399
400 gm_files="ChangeLog ChangeLog.2 config.bfd"
401 if ( echo $* | grep keep\-gm > /dev/null ) ; then
402 for i in $gm_files ; do
403 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
404 if [ -n "${verbose}" ] ; then
405 echo Keeping gm stuff in $i
406 fi
407 fi
408 done
409 else
410 for i in $gm_files ; do
411 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
412 if [ -n "${verbose}" ] ; then
413 echo Removing traces of \"gm\" from $i...
414 fi
415 cp $i new
416 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
417 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
418 if [ -n "${verbose}" ] ; then
419 echo Caching $i in .Recover...
420 fi
421 mv $i .Recover
422 fi
423 mv new $i
424 fi
425 done
426 fi
427
428 for i in * ; do
429 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
430 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
431 fi
432 done
433
434 # End of file.