3 ms·
I wrote an ELF parser in 100lines of C a few years ago. I was especially interested in ELF extensions for ARM. http://infocenter.arm.com/help/topic/com.arm.doc.
by cvs268 10y ago
I wrote an ELF parser in 100lines of C a few years ago. I was especially interested in ELF extensions for ARM.
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044f/IHI0044F_aaelf.pdf http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044f/IH...
The exercise helped me more than what i could have achieved by reading any number of docs. (Thanks to my Team Lead for suggesting i try this.)
The annotated version(~500lines with inline comments now) is up on github at
https://github.com/TheCodeArtist/elf-parser https://github.com/TheCodeArtist/elf-parser
IIRC, its a few minutes away from becoming a disassembler if anyone wants to try...