This is an archive of the discontinued LLVM Phabricator instance.

Make TLS work for PIE executables on aarch64.
ClosedPublic

Authored by ed on Apr 6 2016, 12:33 AM.

Details

Summary

Similar to r265462, TLS related relocations aren't marked as relative,
meaning that we end up generating R_AARCH64_RELATIVE relocations for
them. This change adds TLS relocations that I've seen on my system. With
this patch applied CloudABI's unit testing binary now passes on aarch64.

Diff Detail

Event Timeline

ed updated this revision to Diff 52767.Apr 6 2016, 12:33 AM
ed retitled this revision from to Make TLS work for PIE executables on aarch64..
ed updated this object.
ed added reviewers: rafael, ruiu.
ruiu accepted this revision.Apr 6 2016, 10:51 AM
ruiu edited edge metadata.

LGTM

ELF/Target.cpp
1256–1274

Please sort them in a follow-up patch.

This revision is now accepted and ready to land.Apr 6 2016, 10:51 AM
This revision was automatically updated to reflect the committed changes.