This is an archive of the discontinued LLVM Phabricator instance.

[mips][ias] N32/N64 must not sort the relocation table.
ClosedPublic

Authored by sdardis on Nov 8 2016, 7:56 AM.

Details

Summary

Doing so changes the evaluation order for relocation composition.

Patch By: Daniel Sanders

Diff Detail

Repository
rL LLVM

Event Timeline

sdardis updated this revision to Diff 77195.Nov 8 2016, 7:56 AM
sdardis retitled this revision from to [mips][ias] N32/N64 must not sort the relocation table..
sdardis updated this object.
sdardis added reviewers: vkalintiris, atanasyan.
sdardis set the repository for this revision to rL LLVM.
sdardis added a subscriber: llvm-commits.
atanasyan accepted this revision.Nov 8 2016, 11:07 AM
atanasyan edited edge metadata.

LGTM with a nit.

lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
422 ↗(On Diff #77195)

I would add a comment here to describe why we do not need to sort relocation if hasRelocationAddend() return true.

This revision is now accepted and ready to land.Nov 8 2016, 11:07 AM
This revision was automatically updated to reflect the committed changes.