[llvm-dev] RFC: Absolute or "fixed address" symbols as immediate operands

Rafael Espíndola via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 25 13:43:12 PDT 2016


> The linker “could" do it I think. For example ld64 is pattern matching to
> "optimize away” load from the GOT when possible, replacing then with nop and
> propagating the constant address.

ELF linker implement that too. In the case of lld the target hook is relaxGot.


Cheers,
Rafael


More information about the llvm-dev mailing list