WRT question

Chris tophe cohika at gmail.com
Fri Mar 9 10:24:00 PST 2007


2007/3/9, Peter Johnson <peter at tortall.net>:
>
> RIP-relative is special, as unlike wrt weird_seg, it's not just a
> relocation but is rather a flag to the processor to treat a load offset as
> RIP-relative instead of absolute (kind of like [symbol+rax] is a flag to
> the processor to add RAX to the symbol).  This flag (like that for
> [symbol+rax]) is set via the ModRM byte and thus is only available in
> effective addresses (memory operands) and not in immediate operands.

I see, thanks for the clarification.

Christophe


More information about the yasm-devel mailing list