This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Don't emit rebase opcodes for subtractor minuend relocs
ClosedPublic

Authored by int3 on Feb 19 2021, 7:11 PM.

Details

Summary

Also add a few asserts to verify that we are indeed handling an
UNSIGNED relocation as the minued. I haven't made it an actual
user-facing error since I don't think llvm-mc is capable of generating
SUBTRACTOR relocations without an associated UNSIGNED.

Diff Detail

Event Timeline

int3 created this revision.Feb 19 2021, 7:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 19 2021, 7:11 PM
int3 requested review of this revision.Feb 19 2021, 7:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 19 2021, 7:11 PM
smeenai accepted this revision.Feb 26 2021, 4:21 PM
smeenai added a subscriber: smeenai.

LGTM

This revision is now accepted and ready to land.Feb 26 2021, 4:21 PM
This revision was landed with ongoing or failed builds.Feb 27 2021, 9:32 AM
This revision was automatically updated to reflect the committed changes.