diff options
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/elf32-arc.c | 10 |
2 files changed, 7 insertions, 10 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f1bc44a..2ee95c6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,12 @@ 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com> + * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of + EF_ARC_CPU_GENERIC. + (arc_elf_final_write_processing): Don't bother setting cpu field + in e_flags, this will have been set elsewhere. + +2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com> + * elf32-arc.c (arc_elf_final_write_processing): Switch to using EF_ARC_MACH_MSK. diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index 7c856d0..ec81852 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -415,7 +415,6 @@ arc_elf_print_private_bfd_data (bfd *abfd, void * ptr) switch (flags & EF_ARC_MACH_MSK) { - case EF_ARC_CPU_GENERIC : fprintf (file, " -mcpu=generic"); break; case EF_ARC_CPU_ARCV2HS : fprintf (file, " -mcpu=ARCv2HS"); break; case EF_ARC_CPU_ARCV2EM : fprintf (file, " -mcpu=ARCv2EM"); break; case E_ARC_MACH_ARC600 : fprintf (file, " -mcpu=ARC600"); break; @@ -647,34 +646,25 @@ static void arc_elf_final_write_processing (bfd * abfd, bfd_boolean linker ATTRIBUTE_UNUSED) { - unsigned long val; unsigned long emf; switch (bfd_get_mach (abfd)) { case bfd_mach_arc_arc600: - val = E_ARC_MACH_ARC600; emf = EM_ARC_COMPACT; break; case bfd_mach_arc_arc601: - val = E_ARC_MACH_ARC601; emf = EM_ARC_COMPACT; break; case bfd_mach_arc_arc700: - val = E_ARC_MACH_ARC700; emf = EM_ARC_COMPACT; break; case bfd_mach_arc_arcv2: - val = EF_ARC_CPU_GENERIC; emf = EM_ARC_COMPACT2; - /* TODO: Check validity of this. It can also be ARCV2EM here. - Previous version sets the e_machine here. */ break; default: abort (); } - if ((elf_elfheader (abfd)->e_flags & EF_ARC_MACH_MSK) == EF_ARC_CPU_GENERIC) - elf_elfheader (abfd)->e_flags |= val; elf_elfheader (abfd)->e_machine = emf; |