This is an archive of the discontinued LLVM Phabricator instance.

[PPC64] Allow R_PPC64_DTPREL* to preemptable local-dynamic symbols
ClosedPublic

Authored by MaskRay on Apr 22 2019, 11:19 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

MaskRay created this revision.Apr 22 2019, 11:19 PM
MaskRay updated this revision to Diff 196185.Apr 22 2019, 11:22 PM
MaskRay marked an inline comment as done.

.

ruiu accepted this revision.Apr 22 2019, 11:23 PM

LGTM

This revision is now accepted and ready to land.Apr 22 2019, 11:23 PM
MaskRay marked an inline comment as done.Apr 22 2019, 11:23 PM
MaskRay added inline comments.
ELF/Relocations.cpp
251 ↗(On Diff #196184)

relaxTlsLdToLe is redefined by PPC64 X86 X86_64 (no MIPS). So PPC64 is the last user.

test/ELF/ppc64-tls-ld-preemptable.s
9 ↗(On Diff #196185)

The disassembled instructions are consistent with ld.bfd and gold

R_DTPREL can just use return Sym.getVA(A);

MaskRay updated this revision to Diff 196186.Apr 22 2019, 11:27 PM

Simplify test

This revision was automatically updated to reflect the committed changes.