This is an archive of the discontinued LLVM Phabricator instance.

[ELF][MIPS] Don't emit dynamic relocations for PIE non-preemptible TLS
ClosedPublic

Authored by jrtc27 on Apr 27 2021, 10:20 AM.

Details

Summary

Whilst not wrong (unless using static PIE where the relocations are
likely not implemented by the runtime), this is inefficient, as the TLS
module indices and offsets are independent of the executable's load
address.

Diff Detail

Event Timeline

jrtc27 created this revision.Apr 27 2021, 10:20 AM
jrtc27 requested review of this revision.Apr 27 2021, 10:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2021, 10:20 AM
jrtc27 updated this revision to Diff 340903.Apr 27 2021, 10:23 AM

Use the more conventional .pie rather than -pie.exe for the tests

MaskRay accepted this revision.Apr 27 2021, 10:31 AM

LGTM.

This revision is now accepted and ready to land.Apr 27 2021, 10:31 AM
This revision was landed with ongoing or failed builds.Apr 27 2021, 11:05 AM
This revision was automatically updated to reflect the committed changes.