[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:06:33 PDT 2021


nuriamari created this revision.
Herald added subscribers: hiraditya, mgorny.
Herald added a reviewer: gkm.
Herald added a project: lld-macho.
Herald added a reviewer: lld-macho.
nuriamari edited the summary of this revision.
nuriamari added reviewers: int3, drodriguez.
Herald added a reviewer: alexander-shaposhnikov.
nuriamari added a reviewer: thakis.
nuriamari published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Move the functionality in lld that handles writing of the LC_CODE_SIGNATURE load command and associated data section to a central reusable location.

This change is in preparation for another change that modifies llvm-objcopy to reproduce the LC_CODE_SIGNATURE load command and corresponding
data section to maintain the validity of signed macho object files passed through llvm-objcopy.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109803

Files:
  lld/MachO/SyntheticSections.cpp
  lld/MachO/SyntheticSections.h
  lld/test/MachO/Inputs/code-signature-check.py
  lld/test/MachO/adhoc-codesign-hash.s
  llvm/include/llvm/Object/MachO.h
  llvm/lib/Object/CMakeLists.txt
  llvm/lib/Object/CodeSignatureSection.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109803.372614.patch
Type: text/x-patch
Size: 23835 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210915/3fa1a53d/attachment.bin>


More information about the llvm-commits mailing list