summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2006-12-19 13:24:56 +0000
committerKazu Hirata <kazu@codesourcery.com>2006-12-19 13:24:56 +0000
commit425c6cb00d22328650ba761bd06b184d3d4ade07 (patch)
tree9d1721cea46815a9b947149db0c0cac71c7b29d4 /binutils
parent8a0d8a5c46bc6c330c837546cb384b9781ad6723 (diff)
downloadbinutils-gdb-425c6cb00d22328650ba761bd06b184d3d4ade07.tar.gz
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')
-rw-r--r--binutils/readelf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 845a9c9eda0..fd0069e251a 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");