ELF Parsing leveraging templates
By default
elf_dump just dumps the Program Headers and the Section Headers as well the symbol table
However what makes this interesting the ability to use templates to do interesting stuff
An few examples
You can filter the symbol table to extract information in different ways
elf_dump -f '{{tablealt (head (promote .Sections "SectionHeader") 3)}}' curl
elf_dump -f '{{range (head .ImportedSymbols 3)}}{{println .}}{{end}}' curl
elf_dump -f '{{range .DynamicSymbols}}{{println .}}{{end}}' curl