This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Implement General Dynamic style x86-64 TLSDESC
ClosedPublic

Authored by MaskRay on May 28 2019, 2:32 AM.

Details

Summary

This handles two initial relocation types R_X86_64_GOTPC32_TLSDESC and
R_X86_64_TLSDESC_CALL, as well as the GD->LE and GD->IE relaxations.

Event Timeline

MaskRay created this revision.May 28 2019, 2:32 AM
MaskRay updated this revision to Diff 201626.May 28 2019, 2:36 AM

drop an unrelated test change. fix a comment

ruiu added inline comments.May 28 2019, 5:27 AM
ELF/Arch/X86_64.cpp
203

missing comment?

210

Hm, it's not missing, but a sentence in a comment separated by code looks odd. I don't think we need to save a few lines. You can just repeat the same comments, one at the top of this block and the other inline.

ruiu added inline comments.May 28 2019, 5:45 AM
ELF/Arch/X86_64.cpp
210

Or, "convert ... to the following two instructions."

MaskRay updated this revision to Diff 201652.May 28 2019, 6:32 AM
MaskRay marked 3 inline comments as done.

Improve the comments as ruiu suggested.

ruiu accepted this revision.May 28 2019, 6:53 AM

LGTM

This revision is now accepted and ready to land.May 28 2019, 6:53 AM
This revision was automatically updated to reflect the committed changes.