From aee61b1396f358d53b722a854f9ac327372f708a Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Sat, 25 Aug 2001 01:27:54 +0000 Subject: [PATCH] * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64 --- bfd/ChangeLog | 5 +++++ bfd/elf32-mips.c | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8fdda3770ac..c7f72b9f0fd 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-08-25 Thiemo Seufer + + * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for + E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64 + 2001-08-24 H.J. Lu * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index baeb01fc122..fcf4cc7dd2a 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -1928,16 +1928,16 @@ elf_mips_abi_name (abfd) { flagword flags; - if (ABI_N32_P (abfd)) - return "N32"; - else if (ABI_64_P (abfd)) - return "64"; - flags = elf_elfheader (abfd)->e_flags; switch (flags & EF_MIPS_ABI) { case 0: - return "none"; + if (ABI_N32_P (abfd)) + return "N32"; + else if (ABI_64_P (abfd)) + return "64"; + else + return "none"; case E_MIPS_ABI_O32: return "O32"; case E_MIPS_ABI_O64: -- 2.30.2