PATCH: Set the Operand_PCrel bit only

H. J. Lu hjl@lucon.org
Wed Dec 13 19:35:00 GMT 2006


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;
 	    }



More information about the Binutils mailing list