Binutils for fun and profit: understanding Linux binaries
summary
A minimal ELF is built from handwritten assembly with a real _start that invokes the write and exit syscalls, then linked so offsets become addresses; objdump -d disassembles the object and shows data bytes, gdb TUI inspects source, registers, stack and heap and steps through a homemade brk implementation that provokes the kernel to expand the heap; /proc/<pid>/maps lists segments; .NET Core binaries are debugged under gdb; a simulated exchange crash yields a core file showing a divide‑by‑zero and reveals environment secrets via strings.
AI-written summary · about
chapters (16)
- 0:00Introduction and speaker background
- 1:10What are binutils and their purpose
- 2:34Common misconceptions about binaries
- 3:44Building a minimal ELF binary
- 6:57Inspecting binaries with objdump
- 8:23Linking object files into executables
- 12:21Debugging with GDB's TUI
- 14:08Inspecting memory segments with proc
- 16:16Understanding the stack in practice
- 18:22Building a minimal libc function
- 20:14Heap allocation and inspection
- 23:52Implementing a simple allocator
- 24:58Debugging .NET Core binaries
- 27:10Debugging a crashed trading simulator
- 30:22Analyzing core dumps safely
- 31:48Q&A session
