diff options
author | Thiemo Seufer <ths@networkno.de> | 2001-12-04 13:27:56 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2001-12-04 13:27:56 +0000 |
commit | 34ba82a8bb9bcac71a71f32bc31b700d8e70b670 (patch) | |
tree | 3e600eeec290484b97659989082696dba1bb9cef /gas/config | |
parent | 96f27b6cb5a30eecba8d58abdb2362711dc23920 (diff) | |
download | gdb-34ba82a8bb9bcac71a71f32bc31b700d8e70b670.zip gdb-34ba82a8bb9bcac71a71f32bc31b700d8e70b670.tar.gz gdb-34ba82a8bb9bcac71a71f32bc31b700d8e70b670.tar.bz2 |
* config/tc-mips.c (md_parse_option): Fix comment. Allow -mabi option
for ELF only.
(show): Document -mabi option.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-mips.c | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index ff331a2b..92d99c8 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -9861,17 +9861,32 @@ md_parse_option (c, arg) break; #ifdef OBJ_ELF - /* The -32 and -64 options tell the assembler to output the 32 - bit or the 64 bit MIPS ELF format. */ + /* The -32, -n32 and -64 options are shortcuts for -mabi=32, -mabi=n32 + and -mabi=64. */ case OPTION_32: + if (OUTPUT_FLAVOR != bfd_target_elf_flavour) + { + as_bad (_("-32 is supported for ELF format only")); + return 0; + } mips_opts.abi = O32_ABI; break; case OPTION_N32: + if (OUTPUT_FLAVOR != bfd_target_elf_flavour) + { + as_bad (_("-n32 is supported for ELF format only")); + return 0; + } mips_opts.abi = N32_ABI; break; case OPTION_64: + if (OUTPUT_FLAVOR != bfd_target_elf_flavour) + { + as_bad (_("-64 is supported for ELF format only")); + return 0; + } mips_opts.abi = N64_ABI; if (! support_64bit_objects()) as_fatal (_("No compiled in support for 64 bit object file format")); @@ -9898,6 +9913,11 @@ md_parse_option (c, arg) #ifdef OBJ_ELF case OPTION_MABI: + if (OUTPUT_FLAVOR != bfd_target_elf_flavour) + { + as_bad (_("-mabi is supported for ELF format only")); + return 0; + } if (strcmp (arg, "32") == 0) mips_opts.abi = O32_ABI; else if (strcmp (arg, "o64") == 0) @@ -10043,6 +10063,19 @@ MIPS options:\n\ -KPIC, -call_shared generate SVR4 position independent code\n\ -non_shared do not generate position independent code\n\ -xgot assume a 32 bit GOT\n\ +-mabi=ABI create ABI conformant object file for:\n")); + + first = 1; + + show (stream, "32", &column, &first); + show (stream, "o64", &column, &first); + show (stream, "n32", &column, &first); + show (stream, "64", &column, &first); + show (stream, "eabi", &column, &first); + + fputc ('\n', stream); + + fprintf (stream, _("\ -32 create o32 ABI object file (default)\n\ -n32 create n32 ABI object file\n\ -64 create 64 ABI object file\n")); |