Files
clang-p2996/lld/MachO/InputFiles.h
Carlo Cabrera 1de9bc1a27 [lld][MachO] Respect dylibs linked with -allowable_client (#114638)
ld64.lld would previously allow you to link against dylibs linked with
`-allowable_client`, even if the client's name does not match any
allowed client.

This change fixes that. See #114146 for related discussion. 

The test binary `liballowable_client.dylib` was created on macOS with:

echo | clang -xc - -dynamiclib -mmacosx-version-min=10.11 -arch x86_64
-Wl,-allowable_client,allowed -o lib/liballowable_client.dylib
2024-11-20 20:02:17 -05:00

12 KiB