gas generating bad code for i386

Tom Riddle ftr@oracom.com
Tue Mar 7 11:38:00 GMT 2000


Ian Lance Taylor wrote:

>    Date: Tue, 07 Mar 2000 14:17:01 -0500
>    From: Tom Riddle <ftr@oracom.com>
>
> Please do not send base64 messages to this mailing list.  Send plain
> text.

What I sent was plain text, not sure what you received.

>
>
> I'm surprised that the instruction `je 4' ever did what you want it to
> do.  To me that is a jump to the absolute address 4.
>
> Use something like `je .+4' instead.

According to the gas info pages, Node: i386-Memory:

   Absolute (as opposed to PC relative) call and jump operands must be
prefixed with `*'.  If no `*' is specified, `as' always chooses PC
relative addressing for jump/call labels.


--

Tom Riddle

Oracom, Inc.
http://www.oracom.com

Tel. +1 978.557.5710x305
Fax  +1 978.557.5716




More information about the Binutils mailing list