This is an archive of the discontinued LLVM Phabricator instance.

[ELF2/AArch64] Add lazy relocation for AArch64 target.
ClosedPublic

Authored by ikudrin on Nov 17 2015, 9:03 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ikudrin updated this revision to Diff 40400.Nov 17 2015, 9:03 AM
ikudrin retitled this revision from to [ELF2/AArch64] Add lazy relocation for AArch64 target..
ikudrin updated this object.
ikudrin added reviewers: davide, ruiu.
ikudrin added a project: lld.
ikudrin added a subscriber: llvm-commits.
ruiu accepted this revision.Nov 17 2015, 9:15 AM
ruiu edited edge metadata.

LGTM with a nit.

ELF/Target.cpp
617 ↗(On Diff #40400)

Remove this function.

This revision is now accepted and ready to land.Nov 17 2015, 9:15 AM
davide accepted this revision.Nov 17 2015, 9:16 AM
davide edited edge metadata.

Looks good, thanks.

ikudrin added inline comments.Nov 17 2015, 9:28 AM
ELF/Target.cpp
617 ↗(On Diff #40400)

Why? If I remove it, I'll need to fill PCRelReloc instead, but this function is called for different types of relocations, R_AARCH64_JUMP26 and R_AARCH64_CALL26 in particular. And these relocations are supported by the relocateOne() method anyway.

ruiu added a comment.Nov 17 2015, 9:31 AM

LGTM

ELF/Target.cpp
617 ↗(On Diff #40400)

I'm sorry I thought that this is a dead function. It is not.

The name of this function is inconsistent. Could you do s/PLT/Plt/ in a follow-up patch?

ikudrin added inline comments.Nov 17 2015, 9:36 AM
ELF/Target.cpp
617 ↗(On Diff #40400)

Sure.

This revision was automatically updated to reflect the committed changes.