[PATCH] Set MIPS n32 ABI flag in ELF header
Thiemo Seufer
ica2_ts@csv.ica.uni-stuttgart.de
Wed Aug 15 14:40:00 GMT 2001
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;
More information about the Binutils
mailing list