aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-mips.c
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2001-08-25 01:27:54 +0000
committerThiemo Seufer <ths@networkno.de>2001-08-25 01:27:54 +0000
commitaee61b1396f358d53b722a854f9ac327372f708a (patch)
treec65f75593946f5e75e241710ad9f4ba618068785 /bfd/elf32-mips.c
parentdda688fcaded180ed085149805931a977244e8d7 (diff)
downloadgdb-aee61b1396f358d53b722a854f9ac327372f708a.zip
gdb-aee61b1396f358d53b722a854f9ac327372f708a.tar.gz
gdb-aee61b1396f358d53b722a854f9ac327372f708a.tar.bz2
* elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r--bfd/elf32-mips.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index baeb01f..fcf4cc7 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: