diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2006-12-19 13:24:56 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2006-12-19 13:24:56 +0000 |
commit | 425c6cb00d22328650ba761bd06b184d3d4ade07 (patch) | |
tree | 9d1721cea46815a9b947149db0c0cac71c7b29d4 /include | |
parent | 8a0d8a5c46bc6c330c837546cb384b9781ad6723 (diff) | |
download | gdb-425c6cb00d22328650ba761bd06b184d3d4ade07.zip gdb-425c6cb00d22328650ba761bd06b184d3d4ade07.tar.gz gdb-425c6cb00d22328650ba761bd06b184d3d4ade07.tar.bz2 |
bfd/
* elf32-m68k.c (elf32_m68k_object_p,
elf32_m68k_print_private_bfd_data): Use EF_M68K_ARCH_MASK to
extract architecture mask.
include/elf/
* m68k.h (EF_M68K_ARCH_MASK): New.
Diffstat (limited to 'include')
-rw-r--r-- | include/elf/ChangeLog | 4 | ||||
-rw-r--r-- | include/elf/m68k.h | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 0c857ae..d0b1ec7 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,7 @@ +2006-12-19 Kazu Hirata <kazu@codesourcery.com> + + * m68k.h (EF_M68K_ARCH_MASK): New. + 2006-12-19 Nathan Sidwell <nathan@codesourcery.com> * internal.h (struct elf_segment_map): Add p_vaddr_offset field. diff --git a/include/elf/m68k.h b/include/elf/m68k.h index 4bc3653..3665d72 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 |