[PATCH] D111164: Regenerate LC_CODE_SIGNATURE during llvm-objcopy operations
Alexander Shaposhnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 8 14:58:55 PDT 2021
alexander-shaposhnikov added inline comments.
================
Comment at: llvm/tools/llvm-objcopy/MachO/Object.h:302-308
+/// When MachO binaries include a LC_CODE_SIGNATURE load command,
+/// the __LINKEDIT data segment will include a section corresponding
+/// to the LC_CODE_SIGNATURE load command. This section serves as a signature
+/// for the binary. Included in the CodeSignature section is a header followed
+/// by a hash of the binary. If present, the CodeSignature section is the
+/// last component of the binary.
+struct CodeSignatureInfo {
----------------
would be good to move this struct declaration too (into MachOLayoutBuilder.h)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111164/new/
https://reviews.llvm.org/D111164
More information about the llvm-commits
mailing list