01-image-headers.sh (746B)
1 # Golden: `-f` file header + `-p` private/program headers over a committed 2 # freestanding aarch64 Mach-O *executable* (exec.macho; source + regen recipe 3 # in execm.c). Locks in the linked-image inspection added for the Mach-O 4 # MH_EXECUTE / MH_DYLIB readers: 5 # -f EXEC_P / D_PAGED flag bits and the real entry point (LC_MAIN) 6 # -p entry point, __TEXT image base, interpreter (LC_LOAD_DYLINKER), and the 7 # __PAGEZERO / __TEXT / __LINKEDIT segments with remapped R/W/X perms 8 # Committed as a binary (like the ELF exec.elf fixture) so the golden is stable 9 # and decoupled from the linker. Copied to a fixed name so the file-format 10 # label line is deterministic. 11 cp "$(dirname "$0")/exec.macho" exec.macho 12 "$KIT" objdump -f -p exec.macho