[PATCH] x86: suppress emission of zero displacements in memoryoperands

Dave Korn dave.korn@artimi.com
Fri May 6 14:26:00 GMT 2005


----Original Message----
>From: Andreas Schwab
>Sent: 06 May 2005 15:13

> "Dave Korn" <dave.korn@artimi.com> writes:
> 
>>   I'm not sure if I've fully understood the intent of this patch, ...

> The m68k assembler is doing something similar, also known as relaxing.

  Hopefully *only* if you specify --relax on the command line, no?

>> What if someone wants to write self-modifying code that stores varying
>> offsets into that field?
> 
> In the m68k assembler you can force a field by adding an explicit size
> modifier.

  Yes, I understand that; what I'm asking is if this patch of Jan's actually
discards the field *even if* it is explicitly stated, when the offset value
is zero.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....



More information about the Binutils mailing list