Crafting a Tiny Mach-O Executable
Sunday, March 15th, 2009The other day I came across this web page in which the author describes his experiment to create a tiny ELF executable that will run on Linux. The result: a 45-byte ELF executable that executes and returns a value. The executable is functionally equivalent to the one generated from compiling the following C program. /* [...]