Learn more about Israeli war crimes in Gaza, funded by the USA, Germany, the UK and others.

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

Want to build a fantastic product using LLMs? I work at Granola where we're building the future IDE for knowledge work. Come and work with us! Read more or get in touch!

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