8 comments

[ 1.5 ms ] story [ 27.3 ms ] thread
I sure hope there’s an anti-debug framework called Durin’s Bane?
One interesting thing about the dwarf format is that it is executable and Turing complete, running small programs on a virtual machine to figure out file names, line numbers and exception handling.
DWARF is such a neat little format. I have a soft spot for the "line program" table, which is a little state machine that allows DWARF to efficiently encode a line/column correspondence for virtual addresses.
Best of luck to you! I spent many hours trying to understand and generate proper Dwarf tables.
Are ELF and DWARF names chosen deliberately or was it a coincidence? Lol