Emulating linux/AMD64 userland: interpreting an ELF binary

from blog Notes on software development, | ↗ original
In this post we'll stumble toward a working emulator for a barebones C program compiled for linux/AMD64. The approach will be slightly more so based on observation than by following a spec; a great way to quickly become familiar with a topic, and a bad way to guarantee correctness. The goal: $ cat tests/simple.c int main() { return 4; } $ gcc...