This is an archive of the discontinued LLVM Phabricator instance.

[PPC64] Support R_PPC64_DTPREL* relcoations
ClosedPublic

Authored by sfertile on May 31 2018, 10:13 AM.

Details

Summary

Patch adds support for most of the dynamic thread pointer based relocations generated for local-dynamic tls.

  • Its missing the _HIGH and _HIGHA versions because llvm-mc doesn't support them in assembly yet, I've used _HI/_HA versions in the testing of the 64 bit offset generation, and will fix this in a follow on patch.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

sfertile created this revision.May 31 2018, 10:13 AM
MaskRay accepted this revision.Jun 11 2018, 9:39 AM

I think the logic is correct. I created D47966 unaware of this revision and tested it with ld.gold on a powerpc64le machine, the output matches.

This revision is now accepted and ready to land.Jun 11 2018, 9:39 AM