Use address size prefix for loopw as for jcxz.
[deliverable/binutils-gdb.git] / bfd / .Sanitize
CommitLineData
8b0f1c20 1# .Sanitize for devo/bfd.
08942d11 2
a92c5906 3# Each directory to survive its way into a release will need a file
08942d11
RP
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
8b0f1c20 14# done in this directory.
08942d11
RP
15
16Do-first:
17
fd8d7c31
MH
18d30v_files="cpu-d30v.c elf32-d30v.c"
19
20if ( echo $* | grep keep\-d30v > /dev/null ) ; then
21 keep_these_too="${d30v_files} ${keep_these_too}"
22else
23 lose_these_too="${d30v_files} ${lose_these_too}"
24fi
25
def47b53 26v850_files="elf32-v850.c"
0c1d95c7
C
27
28if ( echo $* | grep keep\-v850 > /dev/null ) ; then
def47b53 29 keep_these_too="cpu-v850.c ${v850_files} ${keep_these_too}"
0c1d95c7 30else
def47b53 31 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
8988d935 32 keep_these_too="cpu-v850.c ${v850_files} ${keep_these_too}"
def47b53
NC
33 else
34 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
8988d935 35 keep_these_too="cpu-v850.c ${v850_files} ${keep_these_too}"
def47b53 36 else
8988d935 37 lose_these_too="cpu-v850.c ${v850_files} ${lose_these_too}"
def47b53
NC
38 fi
39 fi
0c1d95c7
C
40fi
41
2a0a42d3
FF
42tic80_files="cpu-tic80.c coff-tic80.c"
43
44if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
45 keep_these_too="${tic80_files} ${keep_these_too}"
46else
47 lose_these_too="${tic80_files} ${lose_these_too}"
48fi
49
08942d11
RP
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
56Things-to-keep:
87756e15 57
08942d11
RP
58COPYING
59ChangeLog
ceeca31c 60ChangeLog.1
1613e075 61ChangeLog.2
c0734708 62Makefile.am
08942d11 63Makefile.in
c3e964b9 64PORTING
b8760145 65README
08942d11 66TODO
b7577823 67acconfig.h
c0734708 68acinclude.m4
f515fb2f 69aclocal.m4
60ac749c 70aix386-core.c
c3e964b9 71aout-adobe.c
ff15324f 72aout-arm.c
c3e964b9 73aout-encap.c
56fbe889 74aout-ns32k.c
0cd98b92 75aout-sparcle.c
c3e964b9 76aout-target.h
77d11284 77aout0.c
08942d11
RP
78aout32.c
79aout64.c
80aoutf1.h
08942d11
RP
81aoutx.h
82archive.c
83archures.c
901c5bfd 84bfd-in.h
b9653d81 85bfd-in2.h
08942d11 86bfd.c
c768bd3f 87binary.c
08942d11
RP
88bout.c
89cache.c
e3b5bfa8
SS
90cf-i386lynx.c
91cf-m68klynx.c
92cf-sparclynx.c
5d70e4d1 93cisco-core.c
156e3852 94coff-a29k.c
c3e964b9 95coff-alpha.c
97eb2f0c 96coff-apollo.c
d19df9b5
ILT
97coff-arm.c
98coff-aux.c
c06e55d9 99coff-go32.c
71e34032 100coff-h8300.c
ff975a2c 101coff-h8500.c
156e3852 102coff-i386.c
cf587de8 103coff-i860.c
156e3852 104coff-i960.c
c3e964b9 105coff-m68k.c
156e3852
JG
106coff-m88k.c
107coff-mips.c
63c67f3c 108coff-pmac.c
8d2a09b0 109coff-ppc.c
156e3852 110coff-rs6000.c
9faacb92 111coff-sh.c
e3b5bfa8 112coff-sparc.c
2af5a7e4 113coff-stgo32.c
ac388f2a 114coff-svm68k.c
df61743d 115coff-u68k.c
c7551f76 116coff-we32k.c
d468a149 117coff-w65.c
d41ab714 118coff-z8k.c
08942d11 119coffcode.h
075caafd 120coffgen.c
69645d10 121cofflink.c
075caafd 122coffswap.h
14616002 123config.bfd
936b870c 124config.in
7c1a9ec3 125configure
13b351cc 126configure.bat
0f854557 127configure.com
5a5fa368 128configure.host
c3e964b9 129configure.in
d9e771e3 130corefile.c
c3e964b9
FF
131cpu-a29k.c
132cpu-alpha.c
76af94b9 133cpu-arc.c
6c3bc2b8 134cpu-arm.c
a3c5b9a4 135cpu-d10v.c
c3e964b9
FF
136cpu-h8300.c
137cpu-h8500.c
138cpu-hppa.c
139cpu-i386.c
cf587de8 140cpu-i860.c
c3e964b9 141cpu-i960.c
37bdd624 142cpu-m32r.c
c3e964b9
FF
143cpu-m68k.c
144cpu-m88k.c
145cpu-mips.c
7a68d1f7
ILT
146cpu-m10200.c
147cpu-m10300.c
e26e4fbc 148cpu-ns32k.c
384c1791 149cpu-powerpc.c
c3e964b9
FF
150cpu-rs6000.c
151cpu-sh.c
152cpu-sparc.c
153cpu-vax.c
154cpu-we32k.c
d468a149 155cpu-w65.c
c3e964b9 156cpu-z8k.c
08942d11 157demo64.c
97eb2f0c 158dep-in.sed
c3e964b9 159doc
dae31cf5 160ecoff.c
71efdf83 161ecofflink.c
dae31cf5 162ecoffswap.h
6ab826bd 163elf-bfd.h
cef91d75 164elf.c
76af94b9 165elf32-arc.c
a3c5b9a4 166elf32-d10v.c
d39d83c1 167elf32-gen.c
c268b400
KR
168elf32-hppa.c
169elf32-hppa.h
4743848f
KR
170elf32-i386.c
171elf32-i860.c
37bdd624 172elf32-m32r.c
4743848f 173elf32-m68k.c
2c4f2c72
JK
174elf32-m88k.c
175elf32-mips.c
7a68d1f7
ILT
176elf-m10200.c
177elf-m10300.c
45ccfd58 178elf32-ppc.c
c86158e5 179elf32-sh.c
8d936d1f 180elf32-sparc.c
4743848f 181elf32.c
e8f46717 182elf64-alpha.c
d39d83c1 183elf64-gen.c
d1bf45aa 184elf64-mips.c
66599384 185elf64-sparc.c
4bf86ecb 186elf64.c
4b18dd1e 187elfxx-target.h
ef7e172e 188elfcode.h
ede4eed4
KR
189elfcore.h
190elflink.c
191elflink.h
c3d8e071
ILT
192evax.h
193evax-alpha.c
194evax-egsd.c
195evax-emh.c
196evax-etir.c
197evax-misc.c
08942d11 198filemode.c
6f715d66 199format.c
767f22d5 200freebsd.h
608de555 201gen-aout.c
da6b2d99 202genlink.h
179ce6e1 203go32stub.h
da6b2d99 204hash.c
08942d11 205host-aout.c
90c7c720 206hosts
c3e964b9 207hp300bsd.c
c268b400 208hp300hpux.c
cef91d75 209hppa_stubs.h
8a71bf96 210hppabsd-core.c
3f933620 211hpux-core.c
b7de6963 212i386aout.c
256b39e0 213i386bsd.c
bdf1b511 214i386dynix.c
767f22d5 215i386freebsd.c
afff60cd 216i386linux.c
a3f7a777 217i386netbsd.c
aef0bd99 218i386lynx.c
890eafc0 219i386mach3.c
7c2c70f3 220i386msdos.c
f8ffa548 221i386os9k.c
08942d11 222ieee.c
ffd15489 223ihex.c
c3e964b9 224init.c
7ce1a446 225irix-core.c
141c97ea 226libaout.h
901c5bfd 227libbfd-in.h
08942d11
RP
228libbfd.c
229libbfd.h
901c5bfd 230libcoff-in.h
08942d11 231libcoff.h
a3b3dbdd 232libecoff.h
76b731f9 233libhppa.h
08942d11 234libieee.h
c3e964b9 235libnlm.h
08942d11 236liboasys.h
da6b2d99 237linker.c
3151f12f 238lynx-core.c
e295a90d 239m68k4knetbsd.c
55626bf0 240m68klinux.c
eefe075d 241m68klynx.c
ec35a1c2 242m68knetbsd.c
56fbe889 243m88kmach3.c
346a6d59 244makefile.dos
c3d8e071 245makefile.vms
044c1ba9 246mipsbsd.c
241d8883 247mpw-config.in
63c67f3c 248mpw-make.sed
08942d11 249newsos3.c
fe16107d 250netbsd-core.c
a3f7a777 251netbsd.h
d1f83f44 252nlm-target.h
c3e964b9 253nlm.c
1bbabdad 254nlm32-alpha.c
8fa7a236 255nlm32-i386.c
7ce8b9d1 256nlm32-ppc.c
38f422db 257nlm32-sparc.c
c3e964b9 258nlm32.c
c3e964b9
FF
259nlm64.c
260nlmcode.h
38f422db 261nlmswap.h
c877bdf1 262ns32k.h
a3f7a777 263ns32knetbsd.c
08942d11
RP
264oasys.c
265opncls.c
4346ee0f 266osf-core.c
56fbe889 267pc532-mach.c
a3444c49 268pe-arm.c
b297038d 269pe-i386.c
8d2a09b0 270pe-ppc.c
4e98461f 271pei-arm.c
b297038d 272pei-i386.c
8d2a09b0 273pei-ppc.c
4e98461f 274peicode.h
0d1fcbbb 275ppcboot.c
c236d8b3 276ptrace-core.c
6f715d66 277reloc.c
075caafd 278reloc16.c
6c3bc2b8 279riscix.c
cf15d9e9 280rs6000-core.c
6f715d66 281section.c
66eca5ee
JK
282som.c
283som.h
5f792743 284sparclinux.c
e3b5bfa8 285sparclynx.c
a3f7a777 286sparcnetbsd.c
08942d11 287srec.c
1726b8f0 288stabs.c
7de245d3 289stab-syms.c
c0734708 290stamp-h.in
08942d11 291sunos.c
6f715d66 292syms.c
b7577823 293sysdep.h
08942d11 294targets.c
dee99794 295targmatch.sed
a14b2941 296tekhex.c
08942d11 297trad-core.c
c3c112fc 298versados.c
dd984644 299xcofflink.c
08942d11 300
87756e15
RP
301Things-to-lose:
302
775d4a40 303
08942d11
RP
304Do-last:
305
a3d2e13b 306d30v_files="ChangeLog ChangeLog.2 Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
fd8d7c31
MH
307if ( echo $* | grep keep\-d30v > /dev/null ) ; then
308 for i in $d30v_files ; do
309 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
310 if [ -n "${verbose}" ] ; then
311 echo Keeping d30v stuff in $i
312 fi
313 fi
314 done
315else
316 for i in $d30v_files ; do
317 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
318 if [ -n "${verbose}" ] ; then
319 echo Removing traces of \"d30v\" from $i...
320 fi
321 cp $i new
322 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
323 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
0c1d95c7
C
324 if [ -n "${verbose}" ] ; then
325 echo Caching $i in .Recover...
326 fi
327 mv $i .Recover
328 fi
329 mv new $i
330 fi
331 done
332fi
333
def47b53 334v850_files="ChangeLog ChangeLog.2 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"
c429dba9 335v850e_files="ChangeLog ChangeLog.2 Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
8988d935 336if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
0c1d95c7 337 for i in $v850_files ; do
8988d935 338 if test -r $i && (grep sanitize-v850eq $i > /dev/null) ; then
0c1d95c7 339 if [ -n "${verbose}" ] ; then
8988d935 340 echo Keeping v850eq stuff in $i
0c1d95c7
C
341 fi
342 fi
343 done
344else
8988d935
NC
345 for i in $v850_files ; do
346 if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
0c1d95c7 347 if [ -n "${verbose}" ] ; then
8988d935 348 echo Removing traces of \"v850eq\" from $i...
0c1d95c7
C
349 fi
350 cp $i new
8988d935 351 sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new
0c1d95c7 352 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
2a0a42d3
FF
353 if [ -n "${verbose}" ] ; then
354 echo Caching $i in .Recover...
355 fi
356 mv $i .Recover
357 fi
358 mv new $i
359 fi
360 done
def47b53 361fi
def47b53
NC
362if ( echo $* | grep keep\-v850e > /dev/null ) ; then
363 for i in $v850_files ; do
364 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
365 if [ -n "${verbose}" ] ; then
366 echo Keeping v850e stuff in $i
367 fi
368 fi
369 done
370else
371 for i in $v850_files ; do
372 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
373 if [ -n "${verbose}" ] ; then
374 echo Removing traces of \"v850e\" from $i...
375 fi
376 cp $i new
8988d935 377 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
def47b53
NC
378 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
379 if [ -n "${verbose}" ] ; then
380 echo Caching $i in .Recover...
381 fi
382 mv $i .Recover
383 fi
384 mv new $i
385 fi
386 done
387fi
8988d935
NC
388
389if ( echo $* | grep keep\-v850 > /dev/null ) ; then
def47b53 390 for i in $v850_files ; do
8988d935 391 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
def47b53 392 if [ -n "${verbose}" ] ; then
8988d935 393 echo Keeping v850 stuff in $i
def47b53
NC
394 fi
395 fi
396 done
397else
8988d935
NC
398 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
399 true
400 else
401 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
402 true
403 else
404 for i in $v850e_files ; do
405 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
def47b53 406 if [ -n "${verbose}" ] ; then
8988d935 407 echo Removing traces of \"v850\" from $i...
def47b53
NC
408 fi
409 cp $i new
8988d935 410 sed '/start\-sanitize\-v850/,/end\-sanitize\-v850/d' < $i > new
def47b53
NC
411 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
412 if [ -n "${verbose}" ] ; then
413 echo Caching $i in .Recover...
414 fi
415 mv $i .Recover
416 fi
417 mv new $i
418 fi
419 done
8988d935
NC
420 fi
421 fi
2a0a42d3
FF
422fi
423
276c2d7d
GRK
424r5900_files="ChangeLog config.bfd"
425if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
426 for i in $r5900_files ; do
427 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
428 if [ -n "${verbose}" ] ; then
429 echo Keeping r5900 stuff in $i
430 fi
431 fi
432 done
433else
434 for i in $r5900_files ; do
435 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
436 if [ -n "${verbose}" ] ; then
437 echo Removing traces of \"r5900\" from $i...
438 fi
439 cp $i new
440 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
441 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
442 if [ -n "${verbose}" ] ; then
443 echo Caching $i in .Recover...
444 fi
445 mv $i .Recover
446 fi
447 mv new $i
448 fi
449 done
450fi
451
a3d2e13b 452tic80_files="ChangeLog Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
2a0a42d3
FF
453if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
454 for i in $tic80_files ; do
455 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
456 if [ -n "${verbose}" ] ; then
457 echo Keeping tic80 stuff in $i
458 fi
459 fi
460 done
461else
462 for i in $tic80_files ; do
463 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
464 if [ -n "${verbose}" ] ; then
465 echo Removing traces of \"tic80\" from $i...
466 fi
467 cp $i new
468 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
469 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
05cedcf6
DE
470 if [ -n "${verbose}" ] ; then
471 echo Caching $i in .Recover...
472 fi
473 mv $i .Recover
474 fi
475 mv new $i
476 fi
477 done
478fi
479
d6d44ef9
SG
480gm_files="ChangeLog ChangeLog.2 config.bfd"
481if ( echo $* | grep keep\-gm > /dev/null ) ; then
482 for i in $gm_files ; do
483 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
484 if [ -n "${verbose}" ] ; then
485 echo Keeping gm stuff in $i
486 fi
487 fi
488 done
489else
490 for i in $gm_files ; do
491 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
492 if [ -n "${verbose}" ] ; then
493 echo Removing traces of \"gm\" from $i...
494 fi
495 cp $i new
496 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
497 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
498 if [ -n "${verbose}" ] ; then
499 echo Caching $i in .Recover...
500 fi
501 mv $i .Recover
502 fi
503 mv new $i
504 fi
505 done
506fi
507
5c680afd
MT
508for i in * ; do
509 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
510 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
511 fi
512done
513
08942d11 514# End of file.
This page took 0.220079 seconds and 4 git commands to generate.