This is an archive of the discontinued LLVM Phabricator instance.

[mips] Do not emit R_MIPS_JALR for sym+offset in case of O32 ABI
ClosedPublic

Authored by atanasyan on Nov 13 2019, 12:25 PM.

Details

Summary

O32 ABI uses relocations in REL format. Relocation's addend is written in place. R_MIPS_JALR relocation points to the jalr instruction which does not have a place to store the relocation addend. So it's impossible to save non-zero "offset". This patch blocks emission of R_MIPS_JALR relocations in such cases.

Diff Detail

Event Timeline

atanasyan created this revision.Nov 13 2019, 12:25 PM
This revision is now accepted and ready to land.Nov 15 2019, 5:29 AM

Thanks for review.

This revision was automatically updated to reflect the committed changes.