[PATCH] D96164: [lld-macho] add code signature for native arm64 macOS
Paul via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 11 12:25:32 PST 2021
cynecx added a comment.
@gkm Re: the linker flag. I think there were talking about this (`linkerSigned`):
cdir := CodeDirectory{
magic: CSMAGIC_CODEDIRECTORY,
length: uint32(sz) - uint32(unsafe.Sizeof(SuperBlob{})+unsafe.Sizeof(Blob{})),
version: 0x20400,
flags: 0x20002, // adhoc | linkerSigned (0b10)
hashOffset: uint32(hashOff),
identOffset: uint32(idOff),
nCodeSlots: uint32(nhashes),
codeLimit: uint32(sigOff),
hashSize: sha256.Size,
hashType: kSecCodeSignatureHashSHA256,
pageSize: uint8(pageSizeBits),
execSegBase: textSeg.Offset,
execSegLimit: textSeg.Filesz,
}
https://go-review.googlesource.com/c/scratch/+/271866/5/cherry/codesign.go#293
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96164/new/
https://reviews.llvm.org/D96164
More information about the llvm-commits
mailing list