LLVM 17.0.0git
llvm::objcopy::macho::CodeSignatureInfo Struct Reference

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. More...

#include "ObjCopy/MachO/MachOLayoutBuilder.h"

Collaboration diagram for llvm::objcopy::macho::CodeSignatureInfo:
[legend]

Public Attributes

uint32_t StartOffset

uint32_t BlockCount

StringRef OutputFileName

uint32_t Size

Static Public Attributes

static constexpr uint32_t Align = 16

static constexpr uint8_t BlockSizeShift = 12

static constexpr size_t BlockSize = (1 << BlockSizeShift)

static constexpr size_t HashSize = 256 / 8

Detailed Description

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.

Definition at line 25 of file MachOLayoutBuilder.h.

◆ Align

 constexpr uint32_t llvm::objcopy::macho::CodeSignatureInfo::Align = 16
staticconstexpr

Definition at line 29 of file MachOLayoutBuilder.h.

Definition at line 47 of file MachOLayoutBuilder.h.

staticconstexpr
Initial value:

Definition at line 36 of file MachOLayoutBuilder.h.

◆ BlockCount

 uint32_t llvm::objcopy::macho::CodeSignatureInfo::BlockCount

Definition at line 49 of file MachOLayoutBuilder.h.

◆ BlockSize

 constexpr size_t llvm::objcopy::macho::CodeSignatureInfo::BlockSize = (1 << BlockSizeShift)
staticconstexpr

Definition at line 32 of file MachOLayoutBuilder.h.

◆ BlockSizeShift

 constexpr uint8_t llvm::objcopy::macho::CodeSignatureInfo::BlockSizeShift = 12
staticconstexpr

Definition at line 30 of file MachOLayoutBuilder.h.

staticconstexpr
Initial value:

Definition at line 40 of file MachOLayoutBuilder.h.

◆ HashSize

 constexpr size_t llvm::objcopy::macho::CodeSignatureInfo::HashSize = 256 / 8
staticconstexpr

Definition at line 35 of file MachOLayoutBuilder.h.

◆ OutputFileName

 StringRef llvm::objcopy::macho::CodeSignatureInfo::OutputFileName

Definition at line 50 of file MachOLayoutBuilder.h.

◆ Size

 uint32_t llvm::objcopy::macho::CodeSignatureInfo::Size

Definition at line 53 of file MachOLayoutBuilder.h.

◆ StartOffset

 uint32_t llvm::objcopy::macho::CodeSignatureInfo::StartOffset

Definition at line 45 of file MachOLayoutBuilder.h.

The documentation for this struct was generated from the following file: