diff options
author | Chris Demetriou <cgd@google.com> | 2001-02-10 21:41:12 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2001-02-10 21:41:12 +0000 |
commit | 0f074f60a4f3c8263b8f01628caaa4b5109aa586 (patch) | |
tree | c816561e9151efefdb62d421fdb65beb70cdd7c2 /gas | |
parent | a8079a9b4cb31cbff90e4c6aba803dc7e9a1c2d0 (diff) | |
download | gdb-0f074f60a4f3c8263b8f01628caaa4b5109aa586.zip gdb-0f074f60a4f3c8263b8f01628caaa4b5109aa586.tar.gz gdb-0f074f60a4f3c8263b8f01628caaa4b5109aa586.tar.bz2 |
2001-02-10 Chris Demetriou <cgd@broadcom.com>
* config/tc-mips.c (md_parse_option): Don't try to compile
ELF-only option code if not ELF.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 6fbf67c..f24550e1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-02-10 Chris Demetriou <cgd@broadcom.com> + + * config/tc-mips.c (md_parse_option): Don't try to compile + ELF-only option code if not ELF. + 2001-02-08 David Mosberger <davidm@hpl.hp.com> * config/tc-ia64.h (md_elf_section_type): New macro. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index a0405852..77ec76f 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -9057,6 +9057,7 @@ md_parse_option (c, arg) g_switch_value = 0x7fffffff; break; +#ifdef OBJ_ELF /* When generating ELF code, we permit -KPIC and -call_shared to select SVR4_PIC, and -non_shared to select no PIC. This is intended to be compatible with Irix 5. */ @@ -9090,6 +9091,7 @@ md_parse_option (c, arg) case OPTION_XGOT: mips_big_got = 1; break; +#endif /* OBJ_ELF */ case 'G': if (! USE_GLOBAL_POINTER_OPT) @@ -9107,6 +9109,7 @@ md_parse_option (c, arg) g_switch_seen = 1; break; +#ifdef OBJ_ELF /* The -32 and -64 options tell the assembler to output the 32 bit or the 64 bit MIPS ELF format. */ case OPTION_32: @@ -9128,6 +9131,7 @@ md_parse_option (c, arg) mips_64 = 1; } break; +#endif /* OBJ_ELF */ case OPTION_GP32: mips_gp32 = 1; |