This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Have -ObjC load archive members before symbol resolution
ClosedPublic

Authored by int3 on Aug 26 2021, 12:12 PM.

Details

Summary

This is what ld64 does. Deviating in behavior here can result
in some subtle duplicate symbol errors, as detailed in the objc.s test.

Fixes PR51475.

Diff Detail

Event Timeline

int3 created this revision.Aug 26 2021, 12:12 PM
Herald added a project: Restricted Project. · View Herald Transcript
int3 requested review of this revision.Aug 26 2021, 12:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 26 2021, 12:12 PM
int3 edited the summary of this revision. (Show Details)Aug 26 2021, 12:17 PM
oontvoo accepted this revision.Aug 26 2021, 1:20 PM
oontvoo added a subscriber: oontvoo.

LGTM - thanks!

This revision is now accepted and ready to land.Aug 26 2021, 1:20 PM
This revision was landed with ongoing or failed builds.Aug 26 2021, 3:57 PM
This revision was automatically updated to reflect the committed changes.