This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Set the Operand_PCrel bit only
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Wed, 13 Dec 2006 11:34:56 -0800
- Subject: PATCH: Set the Operand_PCrel bit only
I am checking in this patch to set the Operand_PCrel bit only, instead
of setting the whole thing.
H.J.
----
2006-12-13 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (build_modrm_byte): Set the Operand_PCrel
bit only.
--- gas/config/tc-i386.c.flag 2006-12-13 10:27:36.000000000 -0800
+++ gas/config/tc-i386.c 2006-12-13 11:31:14.000000000 -0800
@@ -3526,7 +3526,7 @@ build_modrm_byte ()
i.rm.regmem = NO_BASE_REGISTER;
i.types[op] &= ~ Disp;
i.types[op] |= Disp32S;
- i.flags[op] = Operand_PCrel;
+ i.flags[op] |= Operand_PCrel;
if (! i.disp_operands)
fake_zero_displacement = 1;
}