Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

No PIC (Announce)

posted by marcov, 22.06.2008, 11:49

> > While PIC can complicate assembler significantly (global symbol access
> as
> > Laaca already suggests), this maybe could be helped with some macro's
> or
> > explicit in-assembler support.
>
> I don't know if this is similar enough but NASM supports using
> AMD64/x86_64 RIP-relative addressing in 64-bit mode. Though 32-bit mode
> would have to use another base address register it seems to me the support
> is already there; or at least the most work for it. However I don't know
> how the RIP-relative addressing works so this might be wrong.

Yes, that is it. But that is a normal feature for any x86_64 tool, since the instruction set defines it.

Probably what is meant that NASM allows defining symbols that are relative to RIP too, and when assembling the offsets get corrected as they should.

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 433 users online (0 registered, 433 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum