This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Refactor of InputSectionBase<ELFT>::relocate()
AbandonedPublic

Authored by grimar on Mar 11 2016, 6:04 AM.

Details

Reviewers
ruiu
rafael
Summary

Main aim of this patch was to move MIPS specific code out of relocate().
That made this method a bit shorter.

Diff Detail

Event Timeline

grimar updated this revision to Diff 50423.Mar 11 2016, 6:04 AM
grimar retitled this revision from to [ELF] - Refactor of InputSectionBase<ELFT>::relocate().
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.
atanasyan added inline comments.
ELF/InputSection.cpp
186

It is rather unexpected that function named getLocalPaired under some conditions do not find the pair but still change SymVA for relocations that never have pairs.

205

Ditto

grimar added inline comments.Mar 11 2016, 6:22 AM
ELF/InputSection.cpp
186

That is something I don't like in it's name. But it returns something that is used as pair.
I dont have better suggestion for it's name currently.

atanasyan added inline comments.Mar 11 2016, 6:27 AM
ELF/InputSection.cpp
186

I have an idea how to put all code unrelated to paired relocation to something like adjustMipsSymVA and allow getLocalPaired to handle only "paired" relocations. I can provide a patch tomorrow.

grimar added inline comments.Mar 11 2016, 6:29 AM
ELF/InputSection.cpp
186

Ok.

grimar abandoned this revision.Mar 14 2016, 1:27 AM

Another solution for this was committed http://reviews.llvm.org/D18119.