From f608cd77e751a7c47cfb0f8fb91677cbb3e75232 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 13 Aug 2010 13:03:46 +0000 Subject: [PATCH] bfd/ * elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B variant. binutils/ * readelf.c (get_machine_flags): Detect CF ISA C and EMAC_B variants. --- bfd/ChangeLog | 5 +++++ bfd/elf32-m68k.c | 3 +++ binutils/ChangeLog | 5 +++++ binutils/readelf.c | 10 ++++++++++ 4 files changed, 23 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 895707d4e7c..e1c543b52e8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2010-08-13 Nathan Sidwell + + * elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B + variant. + 2010-08-12 H.J. Lu PR binutils/11909 diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c index ff37a3c06e0..c0a5ef16d73 100644 --- a/bfd/elf32-m68k.c +++ b/bfd/elf32-m68k.c @@ -1293,6 +1293,9 @@ elf32_m68k_print_private_bfd_data (bfd *abfd, void * ptr) case EF_M68K_CF_EMAC: mac = "emac"; break; + case EF_M68K_CF_EMAC_B: + mac = "emac_b"; + break; } if (mac) fprintf (file, " [%s]", mac); diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 3648503d503..cfa33e497b0 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2010-08-13 Nathan Sidwell + + * readelf.c (get_machine_flags): Detect CF ISA C and EMAC_B + variants. + 2010-08-13 Tom Tromey * dwarf.c (process_debug_info): Don't subtract section address diff --git a/binutils/readelf.c b/binutils/readelf.c index 30a7fcc4a11..4c40e6e0111 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -2310,6 +2310,13 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) case EF_M68K_CF_ISA_B: isa = "B"; break; + case EF_M68K_CF_ISA_C: + isa = "C"; + break; + case EF_M68K_CF_ISA_C_NODIV: + isa = "C"; + additional = ", nodiv"; + break; } strcat (buf, ", cf, isa "); strcat (buf, isa); @@ -2328,6 +2335,9 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) case EF_M68K_CF_EMAC: mac = "emac"; break; + case EF_M68K_CF_EMAC_B: + mac = "emac_b"; + break; } if (mac) { -- 2.30.2