This is an archive of the discontinued LLVM Phabricator instance.

[lldb/test] Update test/API/functionalities/load_lazy to macOS 12
ClosedPublic

Authored by vsk on Oct 18 2021, 2:41 PM.

Details

Summary

In macOS 12, dyld switched to using chained fixups. As a result, all symbols
are bound at launch and there are no lazy pointers any more. Since we wish to
import/dlopen() a dylib with missing symbols, we need to use a weak import.
This applies to all macOS 12-aligned OS releases, e.g. iOS 15, etc.

rdar://81295101

Diff Detail

Event Timeline

vsk requested review of this revision.Oct 18 2021, 2:41 PM
vsk created this revision.
This revision is now accepted and ready to land.Oct 18 2021, 5:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 19 2021, 1:25 PM