6 ms·
How did you learn to do this?
by a2code 3y ago
How did you learn to do this?
- hnthrowaway0328 3y agoJust read the ELF specification. There is a header and everything else follows. There are a lot of explanations online, here is one: https://www.cs.cmu.edu/afs/cs/academic/class/15213-f00/docs/elf.pdf https://www.cs.cmu.edu/afs/cs/academic/class/15213-f00/docs/...
- khaledh 3y agoMy reference was the "System V Application Binary Interface" itself (chapter 4). It's not that difficult to grok. https://refspecs.linuxbase.org/elf/x86_64-abi-0.99.pdf https://refspecs.linuxbase.org/elf/x86_64-abi-0.99.pdf