[lld/mac] ad-hoc sign dylibs and bundles on arm64 by default, support -(no_)adhoc_cod...
authorNico Weber <thakis@chromium.org>
Fri, 5 Mar 2021 14:07:58 +0000 (09:07 -0500)
committerNico Weber <thakis@chromium.org>
Fri, 5 Mar 2021 14:12:34 +0000 (09:12 -0500)
commit0e319bd0be26c3a11ab1876da4bbb9259d3f6107
tree2e8911b27db49f9c00be9a15fa059f6a3cf089af
parenta7137b238a07d9399d3ae96c0b461571bd5aa8b2
[lld/mac] ad-hoc sign dylibs and bundles on arm64 by default, support -(no_)adhoc_codesign flags

Previously, lld/mac only ad-hoc codesigned executables on arm64.

Matches ld64 behavior. Part of PR49443. Fixes 14 of 17 failures when running
check-llvm with lld as host linker on an M1 MBP.

Differential Revision: https://reviews.llvm.org/D97994
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/Options.td
lld/MachO/Writer.cpp
lld/test/MachO/adhoc-codesign.s [new file with mode: 0644]