This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Bind re-exported symbols directly to implicitly-linked umbrellas
ClosedPublic

Authored by int3 on Mar 3 2021, 8:44 AM.

Details

Summary

Suppose we are linking against libFoo, which re-exports the
implicitly-bound libSystem, which in turn re-exports some
non-explicitly-bound library like /usr/lib/system/libsystem_c.dylib.
Then any bindings we have to a symbol in libsystem_c should use
libSystem (and not libFoo) as the umbrella library.

Diff Detail

Event Timeline

int3 created this revision.Mar 3 2021, 8:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2021, 8:44 AM
int3 requested review of this revision.Mar 3 2021, 8:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2021, 8:44 AM
smeenai accepted this revision.Mar 4 2021, 11:33 AM
smeenai added a subscriber: smeenai.

LGTM

This revision is now accepted and ready to land.Mar 4 2021, 11:33 AM