Is it possible to do the following with this relative addressing in x86-64?
section .text
two
dq 0
section .data
one:
dq two
When I do it this way on OS X with nasm, I get the following linker warning:
ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in one from /var/tmp/tmp.1.Ho4qKA. To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie
section .text
andsection .data
? – tc.