aboutsummaryrefslogtreecommitdiff

mkelf

Builds an ELF binary from a textual description.

$ git clone https://git.nimmagadda.net/mkelf/
$ cd mkelf
$ ./mkelf sample_elf.lua

then check the subsequent binary with readelf...

$ readelf -a a.out

Motivation and context

A text to ELF/DWARF Compiler

ELF format

Notes

Sections

mkelf will build and insert the 'null' and the '.shstrtab' sections if not specified in the configuration. If the '.shstrtab' section is provided in the configuration, ensure that each section's name_offset is also set.