[PATCH] D109803: Extract LC_CODE_SIGNATURE related implementation out of LLD

Nuri Amari via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 15 09:19:58 PDT 2021


nuriamari added a comment.

In D109803#3001863 <https://reviews.llvm.org/D109803#3001863>, @thakis wrote:

> Move itself looks fine, but why is there a new lld test in here? This should be behavior-preserving, so I wouldn't expect test updates.
>
> If you want to add a new test to lld independently from this change (?), I'd put that in a separate patch.

The new test is to ensure no behavior is broken. The existing code signature related test <https://github.com/llvm/llvm-project/blob/main/lld/test/MachO/adhoc-codesign.s> does not test that the hash was performed properly, just that the load command is included. This test is to make sure the move doesn't break the signature generation.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109803/new/

https://reviews.llvm.org/D109803



More information about the llvm-commits mailing list