This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Implement GOT_LOAD relaxation
ClosedPublic

Authored by int3 on Aug 26 2020, 10:05 AM.

Details

Reviewers
smeenai
Group Reviewers
Restricted Project
Commits
rG7083363c05ab: [lld-macho] Implement GOT_LOAD relaxation
Summary

We can have GOT_LOAD relocations that reference __dso_handle.
However, our binding opcode encoder doesn't support binding to the DSOHandle
symbol. Instead of adding support for that, I decided it would be cleaner to
implement GOT_LOAD relaxation since __dso_handle's location is always
statically known.

Diff Detail

Event Timeline

int3 created this revision.Aug 26 2020, 10:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 26 2020, 10:05 AM
int3 requested review of this revision.Aug 26 2020, 10:05 AM
smeenai accepted this revision.Aug 26 2020, 9:59 PM
smeenai added a subscriber: smeenai.

LGTM

This revision is now accepted and ready to land.Aug 26 2020, 9:59 PM
This revision was landed with ongoing or failed builds.Aug 27 2020, 5:44 PM
This revision was automatically updated to reflect the committed changes.