[PATCH] D57673: [PPC64] Set the number of relocations processed for R_PPC64_TLS[GL]D to 2

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 4 02:19:05 PST 2019


MaskRay added a comment.

Not directly related to the issue but I want to know whether it is allowed to have other relocation types between `R_PPC64_GOT_TLSGD16_HA` and `R_PPC64_GOT_TLSGD16_LO`. Below is one example:

  1748:       00 00 62 3c     addis   r3,r2,0
                      1748: R_PPC64_GOT_TLSGD16_HA    foo
  174c:       80 00 9f f8     std     r4,128(r31)
  1750:       00 00 88 38     addi    r4,r8,0
                      1750: R_PPC64_TOC16_LO  .rodata.str1.1+0x364
  1754:       00 00 63 38     addi    r3,r3,0
                      1754: R_PPC64_GOT_TLSGD16_LO    foo
  1758:       78 00 9f f8     std     r4,120(r31)
  175c:       01 00 00 48     bl      175c <foo+0x1dc>
                      175c: R_PPC64_TLSGD     foo
                      175c: R_PPC64_REL24     __tls_get_addr


Repository:
  rLLD LLVM Linker

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

https://reviews.llvm.org/D57673





More information about the llvm-commits mailing list