This is an archive of the discontinued LLVM Phabricator instance.

[mips] Implement the R_MIPS_JALR and R_MICROMIPS_JALR relocations.
AbandonedPublic

Authored by tomatabacu on Nov 12 2014, 9:20 AM.

Details

Reviewers
dsanders
Summary

These relocations are used for expanding JAL instructions when PIC is enabled.

Here's the reference I used for this implementation:
http://dmz-portal.mips.com/wiki/MIPS_relocation_types#Relocation_Table

For more information about what these relocations mean, see:
http://dmz-portal.mips.com/wiki/MIPS_relocation_types#R_MIPS_JALR

Diff Detail

Event Timeline

tomatabacu updated this revision to Diff 16101.Nov 12 2014, 9:20 AM
tomatabacu retitled this revision from to [mips] Implement the R_MIPS_JALR and R_MICROMIPS_JALR relocations..
tomatabacu updated this object.
tomatabacu edited the test plan for this revision. (Show Details)
tomatabacu added a reviewer: dsanders.
tomatabacu added a subscriber: Unknown Object (MLST).
tomatabacu abandoned this revision.Nov 13 2014, 6:20 AM

This relocation is not needed by D6231 any more, so there's no point in implementing it ATM (especially since there are no explicit tests for it).

In D6230#6, @joerg wrote:

I've searched around a bit and I found this patch from Dec 2013: http://reviews.llvm.org/D2393.

Unfortunately, this is not high up on my todo list, but I'll try to take a look at it when I start doing more IAS work.