diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2006-11-28 17:09:50 +0300 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2006-11-28 17:09:50 +0300 |
commit | fe9812c4c37a5292f3f2d1662eb51c5ff33cfb64 (patch) | |
tree | 847fe91004d44c0f0541958a88c23c2666e43381 | |
parent | 802dd8204602d4f853bf05b50b4b1a99ccaff5d6 (diff) |
bfd/
* elf32-m68k.c (elf32_m68k_object_p,
elf32_m68k_print_private_bfd_data): Use EF_M68K_ARCH_MASK to
extract architecture mask.
binutils/
* readelf.c (get_machine_flags): Use EF_M68K_ARCH_MASK to
extract architecture mask.
include/elf/
* m68k.h (EF_M68K_ARCH_MASK): New.
-rw-r--r-- | ChangeLog.csl | 14 | ||||
-rw-r--r-- | include/elf/m68k.h | 6 |
2 files changed, 19 insertions, 1 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl index e234c243a..2bcf2f94f 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,17 @@ +2006-11-28 Kazu Hirata <kazu@codesourcery.com> + + bfd/ + * elf32-m68k.c (elf32_m68k_object_p, + elf32_m68k_print_private_bfd_data): Use EF_M68K_ARCH_MASK to + extract architecture mask. + + binutils/ + * readelf.c (get_machine_flags): Use EF_M68K_ARCH_MASK to + extract architecture mask. + + include/elf/ + * m68k.h (EF_M68K_ARCH_MASK): New. + 2006-11-19 Nathan Sidwell <nathan@codesourcery.com> opcodes/ diff --git a/include/elf/m68k.h b/include/elf/m68k.h index 4bc365321..3665d7245 100644 --- a/include/elf/m68k.h +++ b/include/elf/m68k.h @@ -52,12 +52,16 @@ START_RELOC_NUMBERS (elf_m68k_reloc_type) RELOC_NUMBER (R_68K_GNU_VTENTRY, 24) END_RELOC_NUMBERS (R_68K_max) +/* We use the top 24 bits to encode information about the + architecture variant. */ #define EF_M68K_CPU32 0x00810000 #define EF_M68K_M68000 0x01000000 #define EF_M68K_CFV4E 0x00008000 +#define EF_M68K_ARCH_MASK (EF_M68K_M68000 | EF_M68K_CPU32 | EF_M68K_CFV4E) /* We use the bottom 8 bits to encode information about the - coldfire variant. */ + coldfire variant. If we use any of these bits, the top 24 bits are + either 0 or EF_M68K_CFV4E. */ #define EF_M68K_CF_ISA_MASK 0x0F /* Which ISA */ #define EF_M68K_CF_ISA_A_NODIV 0x01 /* ISA A except for div */ #define EF_M68K_CF_ISA_A 0x02 |