Creating Teensy ELF Executables for Linux (Or, \"Size Is Everything\")
Summary
This article is a detailed exploration of shrinking Linux ELF executables, starting from a minimal C program and progressing through assembly, custom entry points, and even overlapping ELF headers. It provides practical experiments with compilers, linkers, and the NASM/LD toolchain, while illuminating how the ELF format and loaders interact. It’s a deep-dive into low-level code size optimization with cautions about portability.