4 ms·
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 c
by khaledh 3y 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 https://github.com/sealmove/binarylang
[2] https://github.com/khaledh/elfdump/blob/master/elfparse.nim https://github.com/khaledh/elfdump/blob/master/elfparse.nim