This is an archive of the discontinued LLVM Phabricator instance.

[ELF2] - Fixed PLT rellocations types for X86 and X86_64 targets
AbandonedPublic

Authored by grimar on Oct 9 2015, 5:42 AM.

Details

Reviewers
ruiu
rafael
Summary

R_386_JUMP_SLOT and R_X86_64_JUMP_SLOT are used for PLT rellocations for these targets.

Diff Detail

Event Timeline

grimar updated this revision to Diff 36940.Oct 9 2015, 5:42 AM
grimar retitled this revision from to [ELF2] - Fixed PLT rellocations types for X86 and X86_64 targets.
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.
grimar updated this revision to Diff 36947.Oct 9 2015, 7:31 AM

more correct variant

grimar added a comment.Oct 9 2015, 7:46 AM

Since r249835 reverted "[ELF2] - Implemented rel[a].plt sections" then this one is no more actual now I think.

ruiu accepted this revision.Oct 9 2015, 7:56 AM
ruiu edited edge metadata.

LGTM with a nit.

ELF/OutputSections.cpp
172–201

Overall the conditions in this function are getting complicated over time. We need to simplify that. (It's a TODO for me, so this change is okay.)

ELF/Target.cpp
206

Don't have to add fixmes. I'd remove them instead (but not in this patch).

This revision is now accepted and ready to land.Oct 9 2015, 7:56 AM
grimar abandoned this revision.Oct 9 2015, 10:26 AM

Code relied on changes from http://reviews.llvm.org/D13569 which were reverted in r249835.
So commit is not possible anymore.