JGZ_YES 3f7eef64da fix(macos): add ad-hoc code signature to generated Mach-O
Unsigned Mach-O executables are killed by the macOS kernel (SIGKILL)
on macOS 11+, especially Apple Silicon. paze-compiled binaries like
time.pe→time could not run at all.

Add LC_CODE_SIGNATURE load command + SuperBlob/CodeDirectory (SHA-256,
ad-hoc, no certificate needed) to both MachOWriter (x86-64) and
MachOWriterArm64 (AArch64). The signature covers all code pages
(4096-byte) from file start to the signature blob.

New file: MachOCodeSignature.cs — shared signature generator.
2026-08-03 21:59:05 +08:00
S
描述
A Little Coding Language By JGZ_YES (.NET10)
MIT
1 MiB
语言
C 51.1%
C# 48%
PowerShell 0.8%
Makefile 0.1%