Understanding the ELF

This post is published externally at https://medium.com/@MrJamesFisher/understanding-the-elf-4bd60daac571external link.

I wrote an ELF binary which, when run, prints itself on standard output. It doesn’t “cheat” by reading its own file. Instead, it uses how ELF binary files are loaded into memory. To explain how the program works, I’ll show you it byte-by-byte. Along the way, we’ll learn about files, programs, the ELF format, and tools for working with these things.

Tagged #elf, #quine, #file-format, #computer-science, #programming.

Similar posts

More by Jim

👋 I'm Jim, a full-stack product engineer. Want to build an amazing product and a profitable business? Read more about me or Get in touch!

This page copyright James Fisher 2015. Content is not associated with my employer. Found an error? Edit this page.