This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Fix ABI name output for MIPS ELF
- To: binutils at sources dot redhat dot com
- Subject: [PATCH] Fix ABI name output for MIPS ELF
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- Date: Tue, 26 Jun 2001 16:50:10 +0200
Hi All,
this fixes the ABI string output for "o64" and "eabi64" cases, which
were identified as "64" before. It also cares about wrongly set
ABI flags for "n32" and "64".
Thiemo
2001-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/bfd/ChangeLog
* elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
diff -BurPX /bigdisk/dl/src/binutils-exclude src-orig/bfd/elf32-mips.c src/bfd/elf32-mips.c
--- src-orig/bfd/elf32-mips.c Mon Jun 18 21:48:24 2001
+++ src/bfd/elf32-mips.c Thu Jun 21 07:45:18 2001
@@ -1928,16 +1928,16 @@
{
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: