This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: [patch] i386 bad relative call


On Wed, Mar 01, 2000 at 05:56:24PM -0000, Andrew Haley wrote:
> > Date: Wed, 1 Mar 2000 11:45:13 -0600
> > From: Clinton Popetz <cpopetz@cygnus.com>
> 
> > 	call    310378496
> > 
> > which will be interpreted as a relative call by the assembler.
> 
> Interesting.  Are you saying that there is no way to tell the
> assembler to output a call to an absolute address?

Yes, based on this on this comment from rth in call_insn_operand:

  /* Disallow `call 1234'.  Due to varying assembler lameness this
     gets either rejected or translated to `call .+1234'.  */

I didn't investigate to see if this limitation still exists, but the comment
is from 9/99, so I expect not.

				-Clint

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