From fca870e4e6b5ed75bb12261d9e8aac0fa5d7c00c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 23 Sep 2004 00:51:33 +0000 Subject: PR gas/396 * elf32-sparc.c (elf32_sparc_final_write_processing): Handle bfd_mach_sparc_sparclet and bfd_mach_sparc_sparclite. Remove redundant assignment of EM_SPARC. --- bfd/ChangeLog | 7 +++++++ bfd/elf32-sparc.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a5983ea..842e7d9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2004-09-23 Alan Modra + + PR gas/396 + * elf32-sparc.c (elf32_sparc_final_write_processing): Handle + bfd_mach_sparc_sparclet and bfd_mach_sparc_sparclite. Remove + redundant assignment of EM_SPARC. + 2004-09-22 Brian Ford * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte diff --git a/bfd/elf32-sparc.c b/bfd/elf32-sparc.c index 77b1086..c44a50a 100644 --- a/bfd/elf32-sparc.c +++ b/bfd/elf32-sparc.c @@ -3371,6 +3371,8 @@ elf32_sparc_final_write_processing (abfd, linker) switch (bfd_get_mach (abfd)) { case bfd_mach_sparc : + case bfd_mach_sparc_sparclet : + case bfd_mach_sparc_sparclite : break; /* nothing to do */ case bfd_mach_sparc_v8plus : elf_elfheader (abfd)->e_machine = EM_SPARC32PLUS; @@ -3389,7 +3391,6 @@ elf32_sparc_final_write_processing (abfd, linker) | EF_SPARC_SUN_US3; break; case bfd_mach_sparc_sparclite_le : - elf_elfheader (abfd)->e_machine = EM_SPARC; elf_elfheader (abfd)->e_flags |= EF_SPARC_LEDATA; break; default : -- cgit v1.1