Set MIPS n32 ABI flag in ELF header if appropriate.
authorThiemo Seufer <ths@networkno.de>
Thu, 16 Aug 2001 21:48:28 +0000 (21:48 +0000)
committerThiemo Seufer <ths@networkno.de>
Thu, 16 Aug 2001 21:48:28 +0000 (21:48 +0000)
gas/ChangeLog
gas/config/tc-mips.c

index 022e05819cbab5af38ca37b79ad3f9a1db09194b..5b4052b786c805736309660844df91b1738ef599 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (mips_elf_final_processing): Set elf header flags
+       for n32 ABI if appropriate.
+
 2001-08-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
 
        * config/tc-mips.c (cons_fix_new_mips): Remove.
index a374e3f19006ef3d31f0cbab49f4813191533310..53e2efc861e5d1678abbe43bffa630bc41f8e674 100644 (file)
@@ -11556,6 +11556,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;