[PATCH] D26326: Allow targets to override the use of getKindForGlobal in AsmPrinter to avoid text relocations on PPC64

Hal Finkel via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 17:00:41 PST 2016


hfinkel added a comment.

> The default implementation can deal with static vs PIC, but the SYSV ABI for PPC64 is special in that it always requires the PIC rules to be followed.

Please demonstrate where the ABI requires this; I'm not sure that your premise is correct.  http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi.html says, for example, "One aspect of segment loading differs between executable files and shared objects. Executable file segments may contain absolute code... On the other hand, shared object segments typically contain position-independent code...".


Repository:
  rL LLVM

https://reviews.llvm.org/D26326





More information about the llvm-commits mailing list