> > No. On the i386 platform, *all* jumps are PC-relative (except for the
> > indirect ones), so you can jump relatively to about any location you
> > want.
> 
> My Intel Software Developer's Manual:  Instruction Set Reference seems to
> be saying that things are more complex than that.

Sorry for the confusion. For PIC code, it is not that much the jmp
instructions that matter (unless there are very large functions); it
is the call instructions, invoking procedures in a different
translation units. These were the ones I was talking about; I believe
there are only relative calls (except for the ones having a target
segment as well - gcc never emits those).

Regards,
Martin

Reply via email to