This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] trivial non-ELF gas/config/tc-mips.c fix.
- To: binutils at sources dot redhat dot com
- Subject: [patch] trivial non-ELF gas/config/tc-mips.c fix.
- From: cgd at sibyte dot com (Chris G. Demetriou)
- Date: 10 Feb 2001 12:55:38 -0800
Rev 1.25 of the file made certain option #defines defined only if
OBJ_ELF was defined. This makes it hard to compile the file for
non-elf unless their uses are also #ifdef'd. 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.
Index: config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.34
diff -c -r1.34 tc-mips.c
*** tc-mips.c 2000/12/28 10:07:56 1.34
--- tc-mips.c 2001/02/10 20:50:10
***************
*** 9057,9062 ****
--- 9057,9063 ----
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,9095 ****
--- 9091,9097 ----
case OPTION_XGOT:
mips_big_got = 1;
break;
+ #endif /* OBJ_ELF */
case 'G':
if (! USE_GLOBAL_POINTER_OPT)
***************
*** 9107,9112 ****
--- 9109,9115 ----
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,9133 ****
--- 9131,9137 ----
mips_64 = 1;
}
break;
+ #endif /* OBJ_ELF */
case OPTION_GP32:
mips_gp32 = 1;