This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] When loading reexports, look for basename in -F / -L first
ClosedPublic

Authored by thakis on Jul 26 2021, 5:43 PM.

Details

Summary

Matches ld64 (cf Options::findIndirectDylib()), and fixes PR51218.

Diff Detail

Event Timeline

thakis created this revision.Jul 26 2021, 5:43 PM
Herald added a project: Restricted Project. · View Herald Transcript
thakis requested review of this revision.Jul 26 2021, 5:43 PM
thakis updated this revision to Diff 361868.

tweak test comments

thakis updated this revision to Diff 361887.Jul 26 2021, 7:40 PM

actually pipe to FileCheck and fix issues this identified :|

I patched this in on my linux box and the test passes fine there. Maybe the presubmit bot built the wrong version of the patch? The output for the 2nd build looks like the one for the 1st build.

int3 accepted this revision.Jul 27 2021, 10:58 AM
int3 added a subscriber: int3.
int3 added inline comments.
lld/test/MachO/sub-library.s
97

should we test -reexport_framework as well?

This revision is now accepted and ready to land.Jul 27 2021, 10:58 AM
int3 added inline comments.Jul 27 2021, 10:59 AM
lld/test/MachO/sub-library.s
97

nvm, I realize that we are testing the lookup for LC_REEXPORT_DYLIB, not the option... ignore that

This revision was landed with ongoing or failed builds.Jul 27 2021, 11:29 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2021, 11:29 AM