search for: fptr64lsb

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

Did you mean: fptr32lsb
2016 Oct 31
1
PIC and mcmodel=large on x86 doesn't use any relocations
...ion in 32-bit space. The address of a "routine" is the address of its function descriptor since you need both the code address and the GP value to call the routine. (Yes, our linker does something slightly non-standard with the DIR32LSB/DIR64LSB relocations by treating them as FPTR32LSB/FPTR64LSB for STT_FUNCs so you can actually never obtain the code address via linker relocation). The idea to make this all work on x86-64 is to use the address of a routine's PLT as its "address" in all cases. By putting the PLT in 32-bit address space, some ancient BASIC or Fortran program...