Hacker News new | ask | show | jobs
by khaledh 814 days ago
BinaryLang (for Nim) has similar features[1]. I've written a very compact ELF parser with it[2]. Notice that the last struct has array elements that skip over content based on offsets specified in the header.

[1] https://github.com/sealmove/binarylang

[2] https://github.com/khaledh/elfdump/blob/master/elfparse.nim