Displaying 1 result from an estimated 1 matches for "r_x86_64_gotoff64".
2016 Oct 27
1
PIC and mcmodel=large on x86 doesn't use any relocations
...tr; // .extern dptr
void DataLoadAndStore() {
// Large Memory Model code sequences from AMD64 abi
// Figure 3.22: Position-Independent Global Data Load and Store
//
// Assume that %r15 has been loaded with GOT address by
// function prologue.
// movabs $Lsrc at GOTOFF,%rax ; R_X86_64_GOTOFF64
// movabs $Ldst at GOTOFF,%rdx ; R_X86_64_GOTOFF64
// movl (%rax,%r15),%ecx
// movl %ecx,(%rdx,%r15)
dst = src;
// movabs $dptr at GOT,%rax ; R_X86_64_GOT64
// movabs $Ldst at GOTOFF,%rdx ; R_X86_64_GOTOFF64
// movq (%rax,%r15),%rax
// leaq (%rdx,%r15),%rcx
// movq...