(struct elf_link_hash_entry): Add new field elf_hash_value.
[deliverable/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 dwarf1.c
143 dwarf2.c
144 ecoff.c
145 ecofflink.c
146 ecoffswap.h
147 elf-bfd.h
148 elf-m10200.c
149 elf-m10300.c
150 elf.c
151 elf32-arc.c
152 elf32-arm.c
153 elf32-d10v.c
154 elf32-d30v.c
155 elf32-gen.c
156 elf32-hppa.c
157 elf32-hppa.h
158 elf32-i386.c
159 elf32-i860.c
160 elf32-m32r.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-v850.c
168 elf32.c
169 elf64-alpha.c
170 elf64-gen.c
171 elf64-mips.c
172 elf64-sparc.c
173 elf64.c
174 elfcode.h
175 elfcore.h
176 elflink.c
177 elflink.h
178 elfxx-target.h
179 format.c
180 freebsd.h
181 gen-aout.c
182 genlink.h
183 go32stub.h
184 hash.c
185 host-aout.c
186 hosts
187 hp300bsd.c
188 hp300hpux.c
189 hppa_stubs.h
190 hppabsd-core.c
191 hpux-core.c
192 i386aout.c
193 i386bsd.c
194 i386dynix.c
195 i386freebsd.c
196 i386linux.c
197 i386lynx.c
198 i386mach3.c
199 i386msdos.c
200 i386netbsd.c
201 i386os9k.c
202 ieee.c
203 ihex.c
204 init.c
205 irix-core.c
206 libaout.h
207 libbfd-in.h
208 libbfd.c
209 libbfd.h
210 libcoff-in.h
211 libcoff.h
212 libecoff.h
213 libhppa.h
214 libieee.h
215 libnlm.h
216 liboasys.h
217 linker.c
218 lynx-core.c
219 m68k4knetbsd.c
220 m68klinux.c
221 m68klynx.c
222 m68knetbsd.c
223 m88kmach3.c
224 makefile.dos
225 makefile.vms
226 mipsbsd.c
227 mpw-config.in
228 mpw-make.sed
229 netbsd-core.c
230 netbsd.h
231 newsos3.c
232 nlm-target.h
233 nlm.c
234 nlm32-alpha.c
235 nlm32-i386.c
236 nlm32-ppc.c
237 nlm32-sparc.c
238 nlm32.c
239 nlm64.c
240 nlmcode.h
241 nlmswap.h
242 ns32k.h
243 ns32knetbsd.c
244 oasys.c
245 opncls.c
246 osf-core.c
247 pc532-mach.c
248 pe-arm.c
249 pe-i386.c
250 pe-ppc.c
251 pei-arm.c
252 pei-i386.c
253 pei-ppc.c
254 peicode.h
255 po
256 ppcboot.c
257 ptrace-core.c
258 reloc.c
259 reloc16.c
260 riscix.c
261 rs6000-core.c
262 section.c
263 som.c
264 som.h
265 sparclinux.c
266 sparclynx.c
267 sparcnetbsd.c
268 srec.c
269 stab-syms.c
270 stabs.c
271 stamp-h.in
272 sunos.c
273 syms.c
274 sysdep.h
275 targets.c
276 targmatch.sed
277 tekhex.c
278 trad-core.c
279 vaxnetbsd.c
280 versados.c
281 vms.c
282 vms.h
283 vms-gsd.c
284 vms-hdr.c
285 vms-misc.c
286 vms-tir.c
287 xcofflink.c
288
289 Things-to-lose:
290
291
292
293 # The lines between the "Do-last:" line and the end of the file
294 # are executed as a /bin/sh shell script after everything else is
295 # done.
296
297 Do-last:
298
299 am33_files="ChangeLog archures.c bfd-in2.h cpu-m10300.c elf-m10300.c"
300 if ( echo $* | grep keep\-am33 > /dev/null ) ; then
301 for i in $am33_files ; do
302 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
303 if [ -n "${verbose}" ] ; then
304 echo Keeping am33 stuff in $i
305 fi
306 fi
307 done
308 else
309 for i in $am33_files ; do
310 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
311 if [ -n "${verbose}" ] ; then
312 echo Removing traces of \"am33\" from $i...
313 fi
314 cp $i new
315 sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/d' < $i > new
316 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
317 if [ -n "${verbose}" ] ; then
318 echo Caching $i in .Recover...
319 fi
320 mv $i .Recover
321 fi
322 mv new $i
323 fi
324 done
325 fi
326
327 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"
328 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
329 for i in $v850_files ; do
330 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
331 if [ -n "${verbose}" ] ; then
332 echo Keeping v850e stuff in $i
333 fi
334 fi
335 done
336 else
337 for i in $v850_files ; do
338 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
339 if [ -n "${verbose}" ] ; then
340 echo Removing traces of \"v850e\" from $i...
341 fi
342 cp $i new
343 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
344 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
345 if [ -n "${verbose}" ] ; then
346 echo Caching $i in .Recover...
347 fi
348 mv $i .Recover
349 fi
350 mv new $i
351 fi
352 done
353 fi
354
355 r5900_files="ChangeLog ChangeLog-9697 config.bfd archures.c bfd-in2.h cpu-mips.c elf32-mips.c libbfd.h reloc.c"
356 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
357 for i in $r5900_files ; do
358 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
359 if [ -n "${verbose}" ] ; then
360 echo Keeping r5900 stuff in $i
361 fi
362 fi
363 done
364 else
365 for i in $r5900_files ; do
366 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
367 if [ -n "${verbose}" ] ; then
368 echo Removing traces of \"r5900\" from $i...
369 fi
370 cp $i new
371 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
372 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
373 if [ -n "${verbose}" ] ; then
374 echo Caching $i in .Recover...
375 fi
376 mv $i .Recover
377 fi
378 mv new $i
379 fi
380 done
381 fi
382
383 tx19_files="archures.c bfd-in2.h cpu-mips.c"
384 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
385 for i in $tx19_files ; do
386 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
387 if [ -n "${verbose}" ] ; then
388 echo Keeping tx19 stuff in $i
389 fi
390 fi
391 done
392 else
393 for i in $tx19_files ; do
394 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
395 if [ -n "${verbose}" ] ; then
396 echo Removing traces of \"tx19\" from $i...
397 fi
398 cp $i new
399 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
400 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
401 if [ -n "${verbose}" ] ; then
402 echo Caching $i in .Recover...
403 fi
404 mv $i .Recover
405 fi
406 mv new $i
407 fi
408 done
409 fi
410
411 tx49_files="archures.c bfd-in2.h cpu-mips.c elf32-mips.c"
412 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
413 for i in $tx49_files ; do
414 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
415 if [ -n "${verbose}" ] ; then
416 echo Keeping tx49 stuff in $i
417 fi
418 fi
419 done
420 else
421 for i in $tx49_files ; do
422 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
423 if [ -n "${verbose}" ] ; then
424 echo Removing traces of \"tx49\" from $i...
425 fi
426 cp $i new
427 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
428 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
429 if [ -n "${verbose}" ] ; then
430 echo Caching $i in .Recover...
431 fi
432 mv $i .Recover
433 fi
434 mv new $i
435 fi
436 done
437 fi
438
439 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"
440 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
441 for i in $tic80_files ; do
442 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
443 if [ -n "${verbose}" ] ; then
444 echo Keeping tic80 stuff in $i
445 fi
446 fi
447 done
448 else
449 for i in $tic80_files ; do
450 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
451 if [ -n "${verbose}" ] ; then
452 echo Removing traces of \"tic80\" from $i...
453 fi
454 cp $i new
455 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
456 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
457 if [ -n "${verbose}" ] ; then
458 echo Caching $i in .Recover...
459 fi
460 mv $i .Recover
461 fi
462 mv new $i
463 fi
464 done
465 fi
466
467 cygnus_files="ChangeLog ChangeLog-9697 archures.c bfd-in2.h bfd-in.h cpu-mips.c elf32-mips.c"
468 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
469 for i in $cygnus_files ; do
470 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
471 if [ -n "${verbose}" ] ; then
472 echo Keeping Cygnus stuff in $i
473 fi
474 fi
475 done
476 else
477 for i in $cygnus_files ; do
478 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
479 if [ -n "${verbose}" ] ; then
480 echo Removing traces of \"cygnus\" from $i...
481 fi
482 cp $i new
483 sed '/start\-sanitize\-cygnus/,/end\-sanitize\-cygnus/d' < $i > new
484 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
485 if [ -n "${verbose}" ] ; then
486 echo Caching $i in .Recover...
487 fi
488 mv $i .Recover
489 fi
490 mv new $i
491 fi
492 done
493 fi
494
495 vr4320_files="ChangeLog archures.c bfd-in2.h cpu-mips.c elf32-mips.c"
496 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
497 for i in $vr4320_files ; do
498 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
499 if [ -n "${verbose}" ] ; then
500 echo Keeping vr4320 stuff in $i
501 fi
502 fi
503 done
504 else
505 for i in $vr4320_files ; do
506 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
507 if [ -n "${verbose}" ] ; then
508 echo Removing traces of \"vr4320\" from $i...
509 fi
510 cp $i new
511 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
512 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
513 if [ -n "${verbose}" ] ; then
514 echo Caching $i in .Recover...
515 fi
516 mv $i .Recover
517 fi
518 mv new $i
519 fi
520 done
521 fi
522
523 m32rx_files="ChangeLog ChangeLog-9697 archures.c bfd-in2.h elf32-m32r.c cpu-m32r.c"
524 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
525 for i in $m32rx_files ; do
526 if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then
527 if [ -n "${verbose}" ] ; then
528 echo Keeping m32rx stuff in $i
529 fi
530 fi
531 done
532 else
533 for i in $m32rx_files ; do
534 if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
535 if [ -n "${verbose}" ] ; then
536 echo Removing traces of \"m32rx\" from $i...
537 fi
538 cp $i new
539 sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new
540 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
541 if [ -n "${verbose}" ] ; then
542 echo Caching $i in .Recover...
543 fi
544 mv $i .Recover
545 fi
546 mv new $i
547 fi
548 done
549 fi
550
551 sky_files="ChangeLog archures.c elf32-mips.c reloc.c cpu-mips.c config.bfd configure.in configure bfd-in2.h libbfd.h"
552 if ( echo $* | grep keep\-sky > /dev/null ) ; then
553 for i in $sky_files ; do
554 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
555 if [ -n "${verbose}" ] ; then
556 echo Keeping sky stuff in $i
557 fi
558 fi
559 done
560 else
561 for i in $sky_files ; do
562 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
563 if [ -n "${verbose}" ] ; then
564 echo Removing traces of \"sky\" from $i...
565 fi
566 cp $i new
567 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
568 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
569 if [ -n "${verbose}" ] ; then
570 echo Caching $i in .Recover...
571 fi
572 mv $i .Recover
573 fi
574 mv new $i
575 fi
576 done
577 fi
578
579 beos_files="ChangeLog config.bfd"
580 if ( echo $* | grep keep\-beos > /dev/null ) ; then
581 for i in $beos_files ; do
582 if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then
583 if [ -n "${verbose}" ] ; then
584 echo Keeping beos stuff in $i
585 fi
586 fi
587 done
588 else
589 for i in $beos_files ; do
590 if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then
591 if [ -n "${verbose}" ] ; then
592 echo Removing traces of \"beos\" from $i...
593 fi
594 cp $i new
595 sed '/start\-sanitize\-beos/,/end-\sanitize\-beos/d' < $i > new
596 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
597 if [ -n "${verbose}" ] ; then
598 echo Caching $i in .Recover...
599 fi
600 mv $i .Recover
601 fi
602 mv new $i
603 fi
604 done
605 fi
606
607
608 for i in *; do
609 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
610 echo '***' Some mentions of Sanitize are still left in bfd/$i! 1>&2
611 fi
612 done
613
614 for lost in .. $lose_these_too; do
615 if test $lost != ..; then
616 for i in Makefile.am Makefile.in config.bfd configure.host configure.in configure; do
617 if fgrep $lost $i >/dev/null 2>&1; then
618 echo '***' File $lost was sanitized out but is still mentioned in bfd/$i 1>&2
619 fi
620 done
621 fi
622 done
623
624 # This must come after all other sanitizations. Re-sanitize the .pot
625 # file.
626 if [ -n "${verbose}" ]; then
627 echo Re-computing files for gettext ...
628 fi
629
630 if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
631 if [ -n "${verbose}" ]; then
632 echo Caching po/POTFILES.in in .Recover...
633 fi
634 mv po/POTFILES.in po/.Recover
635 fi
636 find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
637
638 if [ -n "${safe}" -a ! -f po/.Recover/bfd.pot ]; then
639 if [ -n "${verbose}" ]; then
640 echo Caching po/bfd.pot in .Recover...
641 fi
642 mv po/bfd.pot po/.Recover
643 fi
644 # If this fails, Sanitization must fail.
645 xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/bfd.pot || exit 1
646
647 # eof
This page took 0.043159 seconds and 4 git commands to generate.