search for: dataloadandstore

Displaying 1 result from an estimated 1 matches for "dataloadandstore".

2016 Oct 27
1
PIC and mcmodel=large on x86 doesn't use any relocations
...almost exactly what is listed in the ABI document. However, LLVM seems very different. I don't see -fPIC has having any impact with mcmodel=large. Thanks John For example, static int src; // Lsrc: .long static int dst; // Ldst: .long extern int *dptr; // .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,%rd...