Tag · psABI

2 articles to explore.

[The World of Linkers—Lab 04] The First Executable: Two Program Headers and an Entry Point
Four stages have only read input. This lab writes output for the first time: plan a minimal executable image, serialize the ELF header and two program headers by hand, and let the Linux kernel run it and return 42.
Read article
[The World of Linkers—Theory 04] Relocation: Four Bytes Between Caller and Callee
Follow a runnable Linux program from an unresolved call to four final instruction bytes. Distinguish section offsets, file offsets, P, and next RIP before deriving S+A-P; then explore negative displacements, absolute pointers, addends, overflow, and instruction relaxation.
Read article