This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Set MIPS n32 ABI flag in ELF header
- To: binutils at sources dot redhat dot com
- Subject: [PATCH] Set MIPS n32 ABI flag in ELF header
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- Date: Thu, 16 Aug 2001 03:21:36 +0200
Hi All,
this patch sets the EF_MIPS_ABI2 header flag if -mabi=n32 is given.
Thiemo
2001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/gas/ChangeLog
* config/tc-mips.c (mips_elf_final_processing): Set elf header flags
for n32 ABI if appropriate.
diff -BurpNX /bigdisk/src/binutils-exclude src-orig/gas/config/tc-mips.c src/gas/config/tc-mips.c
--- src-orig/gas/config/tc-mips.c Sun Aug 12 13:34:58 2001
+++ src/gas/config/tc-mips.c Thu Aug 16 02:23:17 2001
@@ -11587,6 +11941,10 @@ mips_elf_final_processing ()
else
elf_elfheader (stdoutput)->e_flags |= E_MIPS_ABI_EABI32;
}
+ else if (strcmp (mips_abi_string, "n32") == 0)
+ elf_elfheader (stdoutput)->e_flags |= EF_MIPS_ABI2;
+
+ /* Nothing to do for "64". */
if (mips_32bitmode)
elf_elfheader (stdoutput)->e_flags |= EF_MIPS_32BITMODE;