This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Account for R_386_TLS_LDO_32 addend
ClosedPublic

Authored by smeenai on Apr 20 2017, 9:57 PM.

Details

Summary

This relocation type has an implicit addend. Account for it when
processing the relocation. Add an offset to an existing test to ensure
it gets processed correctly.

Fixes PR32634.

Diff Detail

Repository
rL LLVM

Event Timeline

smeenai created this revision.Apr 20 2017, 9:57 PM
grimar edited reviewers, added: rafael; removed: rafael.espindola.Apr 21 2017, 1:30 AM
grimar accepted this revision.Apr 21 2017, 1:33 AM

This looks good to me. Please wait for approve from Rui and/or Rafael.

This revision is now accepted and ready to land.Apr 21 2017, 1:33 AM
smeenai requested review of this revision.Apr 21 2017, 8:57 AM
smeenai edited edge metadata.

Thanks for the review and for adjusting the reviewers. I'm requesting a review again so that it shows up in the right queue for @rafael and @ruiu.

ruiu accepted this revision.Apr 24 2017, 11:02 AM

LGTM

If you have a bandwidth, can you check if there's no other missing relocations in the function?

This revision is now accepted and ready to land.Apr 24 2017, 11:02 AM

Thanks for the review!

If you have a bandwidth, can you check if there's no other missing relocations in the function?

I'm testing LLD on x86 against a pretty large codebase (which is how I came across this issue), so I suspect I'll come across any other missing cases in the process. I'll try to spot check this though.

This revision was automatically updated to reflect the committed changes.