* config/obj-elf.c (obj_elf_vtable_inherit): Handle arm
[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 tic80_files="cpu-tic80.c coff-tic80.c"
19
20 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
21 keep_these_too="${tic80_files} ${keep_these_too}"
22 else
23 lose_these_too="${tic80_files} ${lose_these_too}"
24 fi
25
26 # All files listed between the "Things-to-keep:" line and the
27 # "Do-last:" line will be kept. All other files will be removed.
28 # Directories listed in this section will have their own Sanitize
29 # called. Directories not listed will be removed in their entirety
30 # with rm -rf.
31
32 Things-to-keep:
33
34 COPYING
35 ChangeLog
36 ChangeLog-9193
37 ChangeLog-9495
38 ChangeLog-9697
39 Makefile.am
40 Makefile.in
41 PORTING
42 README
43 TODO
44 acconfig.h
45 acinclude.m4
46 aclocal.m4
47 aix386-core.c
48 aout-adobe.c
49 aout-arm.c
50 aout-encap.c
51 aout-ns32k.c
52 aout-sparcle.c
53 aout-target.h
54 aout-tic30.c
55 aout0.c
56 aout32.c
57 aout64.c
58 aoutf1.h
59 aoutx.h
60 archive.c
61 archures.c
62 bfd-in.h
63 bfd-in2.h
64 bfd.c
65 binary.c
66 bout.c
67 cache.c
68 cf-i386lynx.c
69 cf-m68klynx.c
70 cf-sparclynx.c
71 cisco-core.c
72 coff-a29k.c
73 coff-alpha.c
74 coff-apollo.c
75 coff-arm.c
76 coff-aux.c
77 coff-go32.c
78 coff-h8300.c
79 coff-h8500.c
80 coff-i386.c
81 coff-i860.c
82 coff-i960.c
83 coff-m68k.c
84 coff-m88k.c
85 coff-mips.c
86 coff-pmac.c
87 coff-ppc.c
88 coff-rs6000.c
89 coff-sh.c
90 coff-sparc.c
91 coff-stgo32.c
92 coff-svm68k.c
93 coff-tic30.c
94 coff-u68k.c
95 coff-w65.c
96 coff-we32k.c
97 coff-z8k.c
98 coffcode.h
99 coffgen.c
100 cofflink.c
101 coffswap.h
102 config.bfd
103 config.in
104 configure
105 configure.bat
106 configure.com
107 configure.host
108 configure.in
109 corefile.c
110 cpu-a29k.c
111 cpu-alpha.c
112 cpu-arc.c
113 cpu-arm.c
114 cpu-d10v.c
115 cpu-d30v.c
116 cpu-h8300.c
117 cpu-h8500.c
118 cpu-hppa.c
119 cpu-i386.c
120 cpu-i860.c
121 cpu-i960.c
122 cpu-m10200.c
123 cpu-m10300.c
124 cpu-m32r.c
125 cpu-m68k.c
126 cpu-m88k.c
127 cpu-mips.c
128 cpu-ns32k.c
129 cpu-powerpc.c
130 cpu-rs6000.c
131 cpu-sh.c
132 cpu-sparc.c
133 cpu-tic30.c
134 cpu-v850.c
135 cpu-vax.c
136 cpu-w65.c
137 cpu-we32k.c
138 cpu-z8k.c
139 demo64.c
140 dep-in.sed
141 doc
142 dwarf2.c
143 ecoff.c
144 ecofflink.c
145 ecoffswap.h
146 elf-bfd.h
147 elf-m10200.c
148 elf-m10300.c
149 elf.c
150 elf32-arc.c
151 elf32-arm.c
152 elf32-d10v.c
153 elf32-d30v.c
154 elf32-gen.c
155 elf32-hppa.c
156 elf32-hppa.h
157 elf32-i386.c
158 elf32-i860.c
159 elf32-m32r.c
160 elf32-m68k.c
161 elf32-m88k.c
162 elf32-mips.c
163 elf32-ppc.c
164 elf32-sh.c
165 elf32-sparc.c
166 elf32-v850.c
167 elf32.c
168 elf64-alpha.c
169 elf64-gen.c
170 elf64-mips.c
171 elf64-sparc.c
172 elf64.c
173 elfcode.h
174 elfcore.h
175 elflink.c
176 elflink.h
177 elfxx-target.h
178 format.c
179 freebsd.h
180 gen-aout.c
181 genlink.h
182 go32stub.h
183 hash.c
184 host-aout.c
185 hosts
186 hp300bsd.c
187 hp300hpux.c
188 hppa_stubs.h
189 hppabsd-core.c
190 hpux-core.c
191 i386aout.c
192 i386bsd.c
193 i386dynix.c
194 i386freebsd.c
195 i386linux.c
196 i386lynx.c
197 i386mach3.c
198 i386msdos.c
199 i386netbsd.c
200 i386os9k.c
201 ieee.c
202 ihex.c
203 init.c
204 irix-core.c
205 libaout.h
206 libbfd-in.h
207 libbfd.c
208 libbfd.h
209 libcoff-in.h
210 libcoff.h
211 libecoff.h
212 libhppa.h
213 libieee.h
214 libnlm.h
215 liboasys.h
216 linker.c
217 lynx-core.c
218 m68k4knetbsd.c
219 m68klinux.c
220 m68klynx.c
221 m68knetbsd.c
222 m88kmach3.c
223 makefile.dos
224 makefile.vms
225 mipsbsd.c
226 mpw-config.in
227 mpw-make.sed
228 netbsd-core.c
229 netbsd.h
230 newsos3.c
231 nlm-target.h
232 nlm.c
233 nlm32-alpha.c
234 nlm32-i386.c
235 nlm32-ppc.c
236 nlm32-sparc.c
237 nlm32.c
238 nlm64.c
239 nlmcode.h
240 nlmswap.h
241 ns32k.h
242 ns32knetbsd.c
243 oasys.c
244 opncls.c
245 osf-core.c
246 pc532-mach.c
247 pe-arm.c
248 pe-i386.c
249 pe-ppc.c
250 pei-arm.c
251 pei-i386.c
252 pei-ppc.c
253 peicode.h
254 po
255 ppcboot.c
256 ptrace-core.c
257 reloc.c
258 reloc16.c
259 riscix.c
260 rs6000-core.c
261 section.c
262 som.c
263 som.h
264 sparclinux.c
265 sparclynx.c
266 sparcnetbsd.c
267 srec.c
268 stab-syms.c
269 stabs.c
270 stamp-h.in
271 sunos.c
272 syms.c
273 sysdep.h
274 targets.c
275 targmatch.sed
276 tekhex.c
277 trad-core.c
278 vaxnetbsd.c
279 versados.c
280 vms.c
281 vms.h
282 vms-gsd.c
283 vms-hdr.c
284 vms-misc.c
285 vms-tir.c
286 xcofflink.c
287
288 Things-to-lose:
289
290
291
292 # The lines between the "Do-last:" line and the end of the file
293 # are executed as a /bin/sh shell script after everything else is
294 # done.
295
296 Do-last:
297
298 am33_files="ChangeLog archures.c bfd-in2.h cpu-m10300.c elf-m10300.c"
299 if ( echo $* | grep keep\-am33 > /dev/null ) ; then
300 for i in $am33_files ; do
301 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
302 if [ -n "${verbose}" ] ; then
303 echo Keeping am33 stuff in $i
304 fi
305 fi
306 done
307 else
308 for i in $am33_files ; do
309 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
310 if [ -n "${verbose}" ] ; then
311 echo Removing traces of \"am33\" from $i...
312 fi
313 cp $i new
314 sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/d' < $i > new
315 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
316 if [ -n "${verbose}" ] ; then
317 echo Caching $i in .Recover...
318 fi
319 mv $i .Recover
320 fi
321 mv new $i
322 fi
323 done
324 fi
325
326 v850_files="ChangeLog ChangeLog-9697 Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h elf32-v850.c cpu-v850.c"
327 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
328 for i in $v850_files ; do
329 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
330 if [ -n "${verbose}" ] ; then
331 echo Keeping v850e stuff in $i
332 fi
333 fi
334 done
335 else
336 for i in $v850_files ; do
337 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
338 if [ -n "${verbose}" ] ; then
339 echo Removing traces of \"v850e\" from $i...
340 fi
341 cp $i new
342 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
343 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
344 if [ -n "${verbose}" ] ; then
345 echo Caching $i in .Recover...
346 fi
347 mv $i .Recover
348 fi
349 mv new $i
350 fi
351 done
352 fi
353
354 r5900_files="ChangeLog ChangeLog-9697 config.bfd archures.c bfd-in2.h cpu-mips.c elf32-mips.c libbfd.h reloc.c"
355 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
356 for i in $r5900_files ; do
357 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
358 if [ -n "${verbose}" ] ; then
359 echo Keeping r5900 stuff in $i
360 fi
361 fi
362 done
363 else
364 for i in $r5900_files ; do
365 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
366 if [ -n "${verbose}" ] ; then
367 echo Removing traces of \"r5900\" from $i...
368 fi
369 cp $i new
370 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
371 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
372 if [ -n "${verbose}" ] ; then
373 echo Caching $i in .Recover...
374 fi
375 mv $i .Recover
376 fi
377 mv new $i
378 fi
379 done
380 fi
381
382 tx19_files="archures.c bfd-in2.h cpu-mips.c"
383 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
384 for i in $tx19_files ; do
385 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
386 if [ -n "${verbose}" ] ; then
387 echo Keeping tx19 stuff in $i
388 fi
389 fi
390 done
391 else
392 for i in $tx19_files ; do
393 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
394 if [ -n "${verbose}" ] ; then
395 echo Removing traces of \"tx19\" from $i...
396 fi
397 cp $i new
398 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
399 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
400 if [ -n "${verbose}" ] ; then
401 echo Caching $i in .Recover...
402 fi
403 mv $i .Recover
404 fi
405 mv new $i
406 fi
407 done
408 fi
409
410 tx49_files="archures.c bfd-in2.h cpu-mips.c elf32-mips.c"
411 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
412 for i in $tx49_files ; do
413 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
414 if [ -n "${verbose}" ] ; then
415 echo Keeping tx49 stuff in $i
416 fi
417 fi
418 done
419 else
420 for i in $tx49_files ; do
421 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
422 if [ -n "${verbose}" ] ; then
423 echo Removing traces of \"tx49\" from $i...
424 fi
425 cp $i new
426 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
427 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
428 if [ -n "${verbose}" ] ; then
429 echo Caching $i in .Recover...
430 fi
431 mv $i .Recover
432 fi
433 mv new $i
434 fi
435 done
436 fi
437
438 tic80_files="ChangeLog ChangeLog-9697 Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
439 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
440 for i in $tic80_files ; do
441 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
442 if [ -n "${verbose}" ] ; then
443 echo Keeping tic80 stuff in $i
444 fi
445 fi
446 done
447 else
448 for i in $tic80_files ; do
449 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
450 if [ -n "${verbose}" ] ; then
451 echo Removing traces of \"tic80\" from $i...
452 fi
453 cp $i new
454 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
455 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
456 if [ -n "${verbose}" ] ; then
457 echo Caching $i in .Recover...
458 fi
459 mv $i .Recover
460 fi
461 mv new $i
462 fi
463 done
464 fi
465
466 cygnus_files="ChangeLog ChangeLog-9697 archures.c bfd-in2.h bfd-in.h cpu-mips.c elf32-mips.c"
467 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
468 for i in $cygnus_files ; do
469 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
470 if [ -n "${verbose}" ] ; then
471 echo Keeping Cygnus stuff in $i
472 fi
473 fi
474 done
475 else
476 for i in $cygnus_files ; do
477 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
478 if [ -n "${verbose}" ] ; then
479 echo Removing traces of \"cygnus\" from $i...
480 fi
481 cp $i new
482 sed '/start\-sanitize\-cygnus/,/end\-sanitize\-cygnus/d' < $i > new
483 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
484 if [ -n "${verbose}" ] ; then
485 echo Caching $i in .Recover...
486 fi
487 mv $i .Recover
488 fi
489 mv new $i
490 fi
491 done
492 fi
493
494 vr4320_files="ChangeLog archures.c bfd-in2.h cpu-mips.c elf32-mips.c"
495 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
496 for i in $vr4320_files ; do
497 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
498 if [ -n "${verbose}" ] ; then
499 echo Keeping vr4320 stuff in $i
500 fi
501 fi
502 done
503 else
504 for i in $vr4320_files ; do
505 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
506 if [ -n "${verbose}" ] ; then
507 echo Removing traces of \"vr4320\" from $i...
508 fi
509 cp $i new
510 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
511 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
512 if [ -n "${verbose}" ] ; then
513 echo Caching $i in .Recover...
514 fi
515 mv $i .Recover
516 fi
517 mv new $i
518 fi
519 done
520 fi
521
522 m32rx_files="ChangeLog ChangeLog-9697 archures.c bfd-in2.h elf32-m32r.c cpu-m32r.c"
523 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
524 for i in $m32rx_files ; do
525 if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then
526 if [ -n "${verbose}" ] ; then
527 echo Keeping m32rx stuff in $i
528 fi
529 fi
530 done
531 else
532 for i in $m32rx_files ; do
533 if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
534 if [ -n "${verbose}" ] ; then
535 echo Removing traces of \"m32rx\" from $i...
536 fi
537 cp $i new
538 sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new
539 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
540 if [ -n "${verbose}" ] ; then
541 echo Caching $i in .Recover...
542 fi
543 mv $i .Recover
544 fi
545 mv new $i
546 fi
547 done
548 fi
549
550 sky_files="ChangeLog archures.c elf32-mips.c reloc.c cpu-mips.c config.bfd configure.in configure bfd-in2.h libbfd.h"
551 if ( echo $* | grep keep\-sky > /dev/null ) ; then
552 for i in $sky_files ; do
553 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
554 if [ -n "${verbose}" ] ; then
555 echo Keeping sky stuff in $i
556 fi
557 fi
558 done
559 else
560 for i in $sky_files ; do
561 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
562 if [ -n "${verbose}" ] ; then
563 echo Removing traces of \"sky\" from $i...
564 fi
565 cp $i new
566 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
567 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
568 if [ -n "${verbose}" ] ; then
569 echo Caching $i in .Recover...
570 fi
571 mv $i .Recover
572 fi
573 mv new $i
574 fi
575 done
576 fi
577
578 beos_files="ChangeLog config.bfd"
579 if ( echo $* | grep keep\-beos > /dev/null ) ; then
580 for i in $beos_files ; do
581 if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then
582 if [ -n "${verbose}" ] ; then
583 echo Keeping beos stuff in $i
584 fi
585 fi
586 done
587 else
588 for i in $beos_files ; do
589 if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then
590 if [ -n "${verbose}" ] ; then
591 echo Removing traces of \"beos\" from $i...
592 fi
593 cp $i new
594 sed '/start\-sanitize\-beos/,/end-\sanitize\-beos/d' < $i > new
595 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
596 if [ -n "${verbose}" ] ; then
597 echo Caching $i in .Recover...
598 fi
599 mv $i .Recover
600 fi
601 mv new $i
602 fi
603 done
604 fi
605
606
607 for i in *; do
608 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
609 echo '***' Some mentions of Sanitize are still left in bfd/$i! 1>&2
610 fi
611 done
612
613 for lost in .. $lose_these_too; do
614 if test $lost != ..; then
615 for i in Makefile.am Makefile.in config.bfd configure.host configure.in configure; do
616 if fgrep $lost $i >/dev/null 2>&1; then
617 echo '***' File $lost was sanitized out but is still mentioned in bfd/$i 1>&2
618 fi
619 done
620 fi
621 done
622
623 # This must come after all other sanitizations. Re-sanitize the .pot
624 # file.
625 if [ -n "${verbose}" ]; then
626 echo Re-computing files for gettext ...
627 fi
628
629 if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
630 if [ -n "${verbose}" ]; then
631 echo Caching po/POTFILES.in in .Recover...
632 fi
633 mv po/POTFILES.in po/.Recover
634 fi
635 find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
636
637 if [ -n "${safe}" -a ! -f po/.Recover/bfd.pot ]; then
638 if [ -n "${verbose}" ]; then
639 echo Caching po/bfd.pot in .Recover...
640 fi
641 mv po/bfd.pot po/.Recover
642 fi
643 # If this fails, Sanitization must fail.
644 xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/bfd.pot || exit 1
645
646 # eof