[PATCH] D76662: [PowerPC]: Don't allow r0 as a target for LD_GOT_TPREL_L/32

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 26 09:45:53 PDT 2020


MaskRay added a comment.

Thanks for this change. For PPC32 this helps GNU ld, gold and lld. The TLS Initial-Exec code sequence consists of 2 instructions.

For PPC64, the code sequence consists of 3 instructions. GNU ld and gold seem to special case r0 and use `nop; nop; addi 0, 13, -28668` to avoid the issue.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76662/new/

https://reviews.llvm.org/D76662





More information about the llvm-commits mailing list