[patch] i386 bad relative call

Clinton Popetz cpopetz@cygnus.com
Wed Mar 1 12:49:00 GMT 2000


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


More information about the Gcc-patches mailing list