01-image-headers.sh (640B)
1 # Golden: `-f` file header + `-p` private/program headers over a committed 2 # freestanding aarch64 ELF *executable* (exec.elf; source + regen recipe in 3 # exec.c). Locks in the linked-image inspection added for ET_EXEC/ET_DYN: 4 # -f EXEC_P / D_PAGED flag bits and the real entry point (no longer 0) 5 # -p entry point, image base, and the LOAD/NOTE program headers w/ perms 6 # Committed as a binary (like test/objdump/dwarf/dwarf.o) so the golden is 7 # stable and decoupled from the code generator. Copied to a fixed name so 8 # the file-format label line is deterministic. 9 cp "$(dirname "$0")/exec.elf" exec.elf 10 "$KIT" objdump -f -p exec.elf