aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2001-08-16 21:48:28 +0000
committerThiemo Seufer <ths@networkno.de>2001-08-16 21:48:28 +0000
commitbe00bdddadf30549f652e4eebb02dd536b162122 (patch)
treef4a94249c0d56003ed700e6ddad67537b59f0fe7 /gas/config
parent99c14723f3f437e55488c8819241d359414ec9d6 (diff)
downloadgdb-be00bdddadf30549f652e4eebb02dd536b162122.zip
gdb-be00bdddadf30549f652e4eebb02dd536b162122.tar.gz
gdb-be00bdddadf30549f652e4eebb02dd536b162122.tar.bz2
Set MIPS n32 ABI flag in ELF header if appropriate.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index a374e3f..53e2efc 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -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;