GNU Binutils with patches for OS216
Revision | 9384306377d9a69e3e3c8744a010e6bdcf333dba (tree) |
---|---|
Time | 2006-11-17 23:21:51 |
Author | Kazu Hirata <kazu@code...> |
Commiter | Kazu Hirata |
bfd/
* elf32-m68k.c: Update uses of EF_M68K_*.
binutils/
* readelf.c: Update uses of EF_M68K_*.
gas/
* config/tc-m68k.c: Update uses of EF_M68K_*.
include/elf
* m68k.h (EF_M68K_ISA_MASK, EF_M68K_ISA_A_NODIV,
EF_M68K_ISA_A, EF_M68K_ISA_A_PLUS, EF_M68K_ISA_B_NOUSP,
EF_M68K_ISA_B, EF_M68K_ISA_C, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_EMAC_B, EF_M68K_FLOAT): Rename to
EF_M68K_CF_ISA_MASK, EF_M68K_CF_ISA_A_NODIV, EF_M68K_CF_ISA_A,
EF_M68K_CF_ISA_A_PLUS, EF_M68K_CF_ISA_B_NOUSP,
EF_M68K_CF_ISA_B, EF_M68K_CF_ISA_C, EF_M68K_CF_MAC_MASK,
EF_M68K_CF_MAC, EF_M68K_CF_EMAC, EF_M68K_CF_EMAC_B,
EF_M68K_CF_FLOAT, respectively.
@@ -1,3 +1,25 @@ | ||
1 | +2006-11-17 Kazu Hirata <kazu@codesourcery.com> | |
2 | + | |
3 | + bfd/ | |
4 | + * elf32-m68k.c: Update uses of EF_M68K_*. | |
5 | + | |
6 | + binutils/ | |
7 | + * readelf.c: Update uses of EF_M68K_*. | |
8 | + | |
9 | + gas/ | |
10 | + * config/tc-m68k.c: Update uses of EF_M68K_*. | |
11 | + | |
12 | + include/elf | |
13 | + * m68k.h (EF_M68K_ISA_MASK, EF_M68K_ISA_A_NODIV, | |
14 | + EF_M68K_ISA_A, EF_M68K_ISA_A_PLUS, EF_M68K_ISA_B_NOUSP, | |
15 | + EF_M68K_ISA_B, EF_M68K_ISA_C, EF_M68K_MAC_MASK, EF_M68K_MAC, | |
16 | + EF_M68K_EMAC, EF_M68K_EMAC_B, EF_M68K_FLOAT): Rename to | |
17 | + EF_M68K_CF_ISA_MASK, EF_M68K_CF_ISA_A_NODIV, EF_M68K_CF_ISA_A, | |
18 | + EF_M68K_CF_ISA_A_PLUS, EF_M68K_CF_ISA_B_NOUSP, | |
19 | + EF_M68K_CF_ISA_B, EF_M68K_CF_ISA_C, EF_M68K_CF_MAC_MASK, | |
20 | + EF_M68K_CF_MAC, EF_M68K_CF_EMAC, EF_M68K_CF_EMAC_B, | |
21 | + EF_M68K_CF_FLOAT, respectively. | |
22 | + | |
1 | 23 | 2006-11-16 Nathan Sidwell <nathan@codesourcery.com> |
2 | 24 | |
3 | 25 | gas/testuite/ |
@@ -445,36 +445,36 @@ elf32_m68k_object_p (bfd *abfd) | ||
445 | 445 | features |= m68000; |
446 | 446 | else if (eflags & EF_M68K_CPU32) |
447 | 447 | features |= cpu32; |
448 | - else if (eflags & EF_M68K_ISA_MASK) | |
448 | + else if (eflags & EF_M68K_CF_ISA_MASK) | |
449 | 449 | { |
450 | - switch (eflags & EF_M68K_ISA_MASK) | |
450 | + switch (eflags & EF_M68K_CF_ISA_MASK) | |
451 | 451 | { |
452 | - case EF_M68K_ISA_A_NODIV: | |
452 | + case EF_M68K_CF_ISA_A_NODIV: | |
453 | 453 | features |= mcfisa_a; |
454 | 454 | break; |
455 | - case EF_M68K_ISA_A: | |
455 | + case EF_M68K_CF_ISA_A: | |
456 | 456 | features |= mcfisa_a|mcfhwdiv; |
457 | 457 | break; |
458 | - case EF_M68K_ISA_A_PLUS: | |
458 | + case EF_M68K_CF_ISA_A_PLUS: | |
459 | 459 | features |= mcfisa_a|mcfisa_aa|mcfhwdiv|mcfusp; |
460 | 460 | break; |
461 | - case EF_M68K_ISA_B_NOUSP: | |
461 | + case EF_M68K_CF_ISA_B_NOUSP: | |
462 | 462 | features |= mcfisa_a|mcfisa_b|mcfhwdiv; |
463 | 463 | break; |
464 | - case EF_M68K_ISA_B: | |
464 | + case EF_M68K_CF_ISA_B: | |
465 | 465 | features |= mcfisa_a|mcfisa_b|mcfhwdiv|mcfusp; |
466 | 466 | break; |
467 | 467 | } |
468 | - switch (eflags & EF_M68K_MAC_MASK) | |
468 | + switch (eflags & EF_M68K_CF_MAC_MASK) | |
469 | 469 | { |
470 | - case EF_M68K_MAC: | |
470 | + case EF_M68K_CF_MAC: | |
471 | 471 | features |= mcfmac; |
472 | 472 | break; |
473 | - case EF_M68K_EMAC: | |
473 | + case EF_M68K_CF_EMAC: | |
474 | 474 | features |= mcfemac; |
475 | 475 | break; |
476 | 476 | } |
477 | - if (eflags & EF_M68K_FLOAT) | |
477 | + if (eflags & EF_M68K_CF_FLOAT) | |
478 | 478 | features |= cfloat; |
479 | 479 | } |
480 | 480 |
@@ -530,8 +530,8 @@ elf32_m68k_merge_private_bfd_data (ibfd, obfd) | ||
530 | 530 | else |
531 | 531 | { |
532 | 532 | out_flags = elf_elfheader (obfd)->e_flags; |
533 | - in_isa = (in_flags & EF_M68K_ISA_MASK); | |
534 | - out_isa = (out_flags & EF_M68K_ISA_MASK); | |
533 | + in_isa = (in_flags & EF_M68K_CF_ISA_MASK); | |
534 | + out_isa = (out_flags & EF_M68K_CF_ISA_MASK); | |
535 | 535 | if (in_isa > out_isa) |
536 | 536 | out_flags ^= in_isa ^ out_isa; |
537 | 537 | out_flags |= in_flags ^ in_isa; |
@@ -569,44 +569,44 @@ elf32_m68k_print_private_bfd_data (abfd, ptr) | ||
569 | 569 | if (eflags & EF_M68K_CFV4E) |
570 | 570 | fprintf (file, " [cfv4e]"); |
571 | 571 | |
572 | - if (eflags & EF_M68K_ISA_MASK) | |
572 | + if (eflags & EF_M68K_CF_ISA_MASK) | |
573 | 573 | { |
574 | 574 | char const *isa = _("unknown"); |
575 | 575 | char const *mac = _("unknown"); |
576 | 576 | char const *additional = ""; |
577 | 577 | |
578 | - switch (eflags & EF_M68K_ISA_MASK) | |
578 | + switch (eflags & EF_M68K_CF_ISA_MASK) | |
579 | 579 | { |
580 | - case EF_M68K_ISA_A_NODIV: | |
580 | + case EF_M68K_CF_ISA_A_NODIV: | |
581 | 581 | isa = "A"; |
582 | 582 | additional = " [nodiv]"; |
583 | 583 | break; |
584 | - case EF_M68K_ISA_A: | |
584 | + case EF_M68K_CF_ISA_A: | |
585 | 585 | isa = "A"; |
586 | 586 | break; |
587 | - case EF_M68K_ISA_A_PLUS: | |
587 | + case EF_M68K_CF_ISA_A_PLUS: | |
588 | 588 | isa = "A+"; |
589 | 589 | break; |
590 | - case EF_M68K_ISA_B_NOUSP: | |
590 | + case EF_M68K_CF_ISA_B_NOUSP: | |
591 | 591 | isa = "B"; |
592 | 592 | additional = " [nousp]"; |
593 | 593 | break; |
594 | - case EF_M68K_ISA_B: | |
594 | + case EF_M68K_CF_ISA_B: | |
595 | 595 | isa = "B"; |
596 | 596 | break; |
597 | 597 | } |
598 | 598 | fprintf (file, " [isa %s]%s", isa, additional); |
599 | - if (eflags & EF_M68K_FLOAT) | |
599 | + if (eflags & EF_M68K_CF_FLOAT) | |
600 | 600 | fprintf (file, " [float]"); |
601 | - switch (eflags & EF_M68K_MAC_MASK) | |
601 | + switch (eflags & EF_M68K_CF_MAC_MASK) | |
602 | 602 | { |
603 | 603 | case 0: |
604 | 604 | mac = NULL; |
605 | 605 | break; |
606 | - case EF_M68K_MAC: | |
606 | + case EF_M68K_CF_MAC: | |
607 | 607 | mac = "mac"; |
608 | 608 | break; |
609 | - case EF_M68K_EMAC: | |
609 | + case EF_M68K_CF_EMAC: | |
610 | 610 | mac = "emac"; |
611 | 611 | break; |
612 | 612 | } |
@@ -1950,29 +1950,29 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) | ||
1950 | 1950 | strcat (buf, ", cpu32"); |
1951 | 1951 | if (e_flags & EF_M68K_M68000) |
1952 | 1952 | strcat (buf, ", m68000"); |
1953 | - if (e_flags & EF_M68K_ISA_MASK) | |
1953 | + if (e_flags & EF_M68K_CF_ISA_MASK) | |
1954 | 1954 | { |
1955 | 1955 | char const *isa = _("unknown"); |
1956 | 1956 | char const *mac = _("unknown mac"); |
1957 | 1957 | char const *additional = NULL; |
1958 | 1958 | |
1959 | - switch (e_flags & EF_M68K_ISA_MASK) | |
1959 | + switch (e_flags & EF_M68K_CF_ISA_MASK) | |
1960 | 1960 | { |
1961 | - case EF_M68K_ISA_A_NODIV: | |
1961 | + case EF_M68K_CF_ISA_A_NODIV: | |
1962 | 1962 | isa = "A"; |
1963 | 1963 | additional = ", nodiv"; |
1964 | 1964 | break; |
1965 | - case EF_M68K_ISA_A: | |
1965 | + case EF_M68K_CF_ISA_A: | |
1966 | 1966 | isa = "A"; |
1967 | 1967 | break; |
1968 | - case EF_M68K_ISA_A_PLUS: | |
1968 | + case EF_M68K_CF_ISA_A_PLUS: | |
1969 | 1969 | isa = "A+"; |
1970 | 1970 | break; |
1971 | - case EF_M68K_ISA_B_NOUSP: | |
1971 | + case EF_M68K_CF_ISA_B_NOUSP: | |
1972 | 1972 | isa = "B"; |
1973 | 1973 | additional = ", nousp"; |
1974 | 1974 | break; |
1975 | - case EF_M68K_ISA_B: | |
1975 | + case EF_M68K_CF_ISA_B: | |
1976 | 1976 | isa = "B"; |
1977 | 1977 | break; |
1978 | 1978 | } |
@@ -1980,17 +1980,17 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) | ||
1980 | 1980 | strcat (buf, isa); |
1981 | 1981 | if (additional) |
1982 | 1982 | strcat (buf, additional); |
1983 | - if (e_flags & EF_M68K_FLOAT) | |
1983 | + if (e_flags & EF_M68K_CF_FLOAT) | |
1984 | 1984 | strcat (buf, ", float"); |
1985 | - switch (e_flags & EF_M68K_MAC_MASK) | |
1985 | + switch (e_flags & EF_M68K_CF_MAC_MASK) | |
1986 | 1986 | { |
1987 | 1987 | case 0: |
1988 | 1988 | mac = NULL; |
1989 | 1989 | break; |
1990 | - case EF_M68K_MAC: | |
1990 | + case EF_M68K_CF_MAC: | |
1991 | 1991 | mac = "mac"; |
1992 | 1992 | break; |
1993 | - case EF_M68K_EMAC: | |
1993 | + case EF_M68K_CF_EMAC: | |
1994 | 1994 | mac = "emac"; |
1995 | 1995 | break; |
1996 | 1996 | } |
@@ -7561,17 +7561,17 @@ m68k_elf_final_processing (void) | ||
7561 | 7561 | { |
7562 | 7562 | static const unsigned isa_features[][2] = |
7563 | 7563 | { |
7564 | - {EF_M68K_ISA_A_NODIV, mcfisa_a}, | |
7565 | - {EF_M68K_ISA_A, mcfisa_a|mcfhwdiv}, | |
7566 | - {EF_M68K_ISA_A_PLUS,mcfisa_a|mcfisa_aa|mcfhwdiv|mcfusp}, | |
7567 | - {EF_M68K_ISA_B_NOUSP,mcfisa_a|mcfisa_b|mcfhwdiv}, | |
7568 | - {EF_M68K_ISA_B, mcfisa_a|mcfisa_b|mcfhwdiv|mcfusp}, | |
7564 | + {EF_M68K_CF_ISA_A_NODIV, mcfisa_a}, | |
7565 | + {EF_M68K_CF_ISA_A, mcfisa_a|mcfhwdiv}, | |
7566 | + {EF_M68K_CF_ISA_A_PLUS,mcfisa_a|mcfisa_aa|mcfhwdiv|mcfusp}, | |
7567 | + {EF_M68K_CF_ISA_B_NOUSP,mcfisa_a|mcfisa_b|mcfhwdiv}, | |
7568 | + {EF_M68K_CF_ISA_B, mcfisa_a|mcfisa_b|mcfhwdiv|mcfusp}, | |
7569 | 7569 | {0,0}, |
7570 | 7570 | }; |
7571 | 7571 | static const unsigned mac_features[][2] = |
7572 | 7572 | { |
7573 | - {EF_M68K_MAC, mcfmac}, | |
7574 | - {EF_M68K_EMAC, mcfemac}, | |
7573 | + {EF_M68K_CF_MAC, mcfmac}, | |
7574 | + {EF_M68K_CF_EMAC, mcfemac}, | |
7575 | 7575 | {0,0}, |
7576 | 7576 | }; |
7577 | 7577 | unsigned ix; |
@@ -7595,7 +7595,7 @@ m68k_elf_final_processing (void) | ||
7595 | 7595 | else |
7596 | 7596 | { |
7597 | 7597 | if (current_architecture & cfloat) |
7598 | - flags |= EF_M68K_FLOAT | EF_M68K_CFV4E; | |
7598 | + flags |= EF_M68K_CF_FLOAT | EF_M68K_CFV4E; | |
7599 | 7599 | |
7600 | 7600 | pattern = current_architecture & (mcfmac|mcfemac); |
7601 | 7601 | if (pattern) |
@@ -58,18 +58,18 @@ END_RELOC_NUMBERS (R_68K_max) | ||
58 | 58 | |
59 | 59 | /* We use the bottom 8 bits to encode information about the |
60 | 60 | coldfire variant. */ |
61 | -#define EF_M68K_ISA_MASK 0x0F /* Which ISA */ | |
62 | -#define EF_M68K_ISA_A_NODIV 0x01 /* ISA A except for div */ | |
63 | -#define EF_M68K_ISA_A 0x02 | |
64 | -#define EF_M68K_ISA_A_PLUS 0x03 | |
65 | -#define EF_M68K_ISA_B_NOUSP 0x04 /* ISA_B except for USP */ | |
66 | -#define EF_M68K_ISA_B 0x05 | |
67 | -#define EF_M68K_ISA_C 0x06 | |
68 | -#define EF_M68K_MAC_MASK 0x30 | |
69 | -#define EF_M68K_MAC 0x10 /* MAC */ | |
70 | -#define EF_M68K_EMAC 0x20 /* EMAC */ | |
71 | -#define EF_M68K_EMAC_B 0x30 /* EMAC_B */ | |
72 | -#define EF_M68K_FLOAT 0x40 /* Has float insns */ | |
61 | +#define EF_M68K_CF_ISA_MASK 0x0F /* Which ISA */ | |
62 | +#define EF_M68K_CF_ISA_A_NODIV 0x01 /* ISA A except for div */ | |
63 | +#define EF_M68K_CF_ISA_A 0x02 | |
64 | +#define EF_M68K_CF_ISA_A_PLUS 0x03 | |
65 | +#define EF_M68K_CF_ISA_B_NOUSP 0x04 /* ISA_B except for USP */ | |
66 | +#define EF_M68K_CF_ISA_B 0x05 | |
67 | +#define EF_M68K_CF_ISA_C 0x06 | |
68 | +#define EF_M68K_CF_MAC_MASK 0x30 | |
69 | +#define EF_M68K_CF_MAC 0x10 /* MAC */ | |
70 | +#define EF_M68K_CF_EMAC 0x20 /* EMAC */ | |
71 | +#define EF_M68K_CF_EMAC_B 0x30 /* EMAC_B */ | |
72 | +#define EF_M68K_CF_FLOAT 0x40 /* Has float insns */ | |
73 | 73 | #define EF_M68K_CF_MASK 0xFF |
74 | 74 | |
75 | 75 | #endif |