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 /binutils/readelf.c | |
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 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 845a9c9..fd0069e 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -2012,11 +2012,11 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) break; case EM_68K: - if (e_flags & EF_M68K_CPU32) - strcat (buf, ", cpu32"); - if (e_flags & EF_M68K_M68000) + if ((e_flags & EF_M68K_ARCH_MASK) == EF_M68K_M68000) strcat (buf, ", m68000"); - if (e_flags & EF_M68K_CF_ISA_MASK) + else if ((e_flags & EF_M68K_ARCH_MASK) == EF_M68K_CPU32) + strcat (buf, ", cpu32"); + else { char const *isa = _("unknown"); char const *mac = _("unknown mac"); |