[PATCH] D62737: [PPC64] Don't apply LD->LE relaxation on R_PPC64_GOT_DTPREL16*

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 07:53:27 PDT 2019


MaskRay created this revision.
MaskRay added reviewers: ruiu, sfertile, syzaara.
Herald added subscribers: llvm-commits, jsji, kbarton, arichardson, nemanjai, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

In ELF v2 ABI, R_PPC64_GOT_DTPREL16* are not relaxed.

This family of relocation types are used for variables outside of 2GiB
of the TLS block. 2 instructions cannot materialize the offset.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D62737

Files:
  ELF/Relocations.cpp
  test/ELF/ppc64-dtprel.s
  test/ELF/ppc64-ld-got-dtprel.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62737.202435.patch
Type: text/x-patch
Size: 4569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190531/ebef53ea/attachment.bin>


More information about the llvm-commits mailing list