[lldb/test] Update test/API/functionalities/load_lazy to macOS 12
authorVedant Kumar <vsk@apple.com>
Mon, 18 Oct 2021 21:39:10 +0000 (14:39 -0700)
committerVedant Kumar <vsk@apple.com>
Tue, 19 Oct 2021 20:25:14 +0000 (13:25 -0700)
commit5e004b03f72a17f916b93792eb778dfa9e7a09cc
tree6ec667bd03dadc55deb387b39194a4ba08e6a5be
parent6fe902daf931dedf6e958b43c043cb57bb612daf
[lldb/test] Update test/API/functionalities/load_lazy to macOS 12

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

Differential Revision: https://reviews.llvm.org/D112034
lldb/test/API/functionalities/load_lazy/Makefile