An ia32 LOCK/XADD bug.
Maciej W. Rozycki
macro@ds2.pg.gda.pl
Thu May 17 02:54:00 GMT 2001
On Thu, 17 May 2001, H . J . Lu wrote:
> > > 2. If "lock xadd %edx,%edx" is really an illegal instruction on ia32,
> > > how should we fix gas to detect that?
> >
> > Some IA-32 specific code has to check that an instruction with a lock
> > prefix always has a memory operand. Don't know where to insert this.
>
> It may be tough. I can put in some testcases to make gas to fail :-).
I don't think such a check belongs to gas as "lock; xadd %edx,%edx" is
valid assembly code even if it faults when executed.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
More information about the Binutils
mailing list