[lld-macho][test] Add -lSystem to all lld invocations
authorKeith Smiley <keithbsmiley@gmail.com>
Tue, 4 Oct 2022 20:41:01 +0000 (13:41 -0700)
committerKeith Smiley <keithbsmiley@gmail.com>
Tue, 4 Oct 2022 21:10:43 +0000 (14:10 -0700)
commit0634a8440d63359e8f0e6674c192524bb404909f
tree8cae17641b95aed264fe2813447aee58590e9c18
parentd7592bbb0362b38d82bdf6e97294f54059e3f456
[lld-macho][test] Add -lSystem to all lld invocations

This is a requirement from ld64, so this mirrors that expectation. Most
of these changes were just offsets from adding the library, or adding
dyld_stub_binder which is always added when linking ld64. This also adds
`%no-lsystem-lld` for the few cases where we're explicitly testing
things without that.

Fixes: https://github.com/llvm/llvm-project/issues/54184

Differential Revision: https://reviews.llvm.org/D135193
14 files changed:
lld/test/MachO/adhoc-codesign-hash.s
lld/test/MachO/arm-dtrace.s
lld/test/MachO/arm64-32-dtrace.s
lld/test/MachO/bind-opcodes.s
lld/test/MachO/dead-strip.s
lld/test/MachO/dyld-stub-binder.s
lld/test/MachO/dylink.s
lld/test/MachO/headerpad.s
lld/test/MachO/lc-linker-option.ll
lld/test/MachO/link-search-order.s
lld/test/MachO/lit.local.cfg
lld/test/MachO/local-symbol-output.s
lld/test/MachO/map-file.s
lld/test/MachO/search-paths.test