This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Fix %hi op for MIPS ECOFF
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: binutils at sources dot redhat dot com
- Date: Thu, 15 Nov 2001 10:50:54 +0100
- Subject: [PATCH] Fix %hi op for MIPS ECOFF
Hi All,
this lets a ECOFF-only gas use %hi ops again. Committed as obvious.
Thiemo
2001-11-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/gas/ChangeLog
* config/tc-mips.c (mips_ip): Re-allow %hi() op for non-ELF assembler.
--- binutils-orig/gas/config/tc-mips.c Wed Nov 14 01:41:50 2001
+++ source/gas/config/tc-mips.c Thu Nov 15 09:14:22 2001
@@ -8374,14 +8380,14 @@ mips_ip (str, ip)
if (imm_expr.X_op == O_constant)
imm_expr.X_add_number =
(imm_expr.X_add_number >> 16) & 0xffff;
-#ifdef OBJ_ELF
- else if (c == S_EX_HIGHEST)
- *imm_reloc = BFD_RELOC_MIPS_HIGHEST;
else if (c == S_EX_HI)
{
*imm_reloc = BFD_RELOC_HI16_S;
imm_unmatched_hi = true;
}
+#ifdef OBJ_ELF
+ else if (c == S_EX_HIGHEST)
+ *imm_reloc = BFD_RELOC_MIPS_HIGHEST;
else if (c == S_EX_GP_REL)
{
/* This occurs in NewABI only. */