This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gas generating bad code for i386


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]