dwarf2json
dwarf2json copied to clipboard
dwarf2json: add FreeBSD kernel support
FreeBSD kernel ISF can be generated the same way as Linux FreeBSD kernel has a "version" string in the ".data" section
This is how I generate a FreeBSD ISF: dwarf2json linux --elf /usr/lib/debug/boot/kernel/kernel.debug --elf-symbols /boot/kernel/kernel > FreeBSD-14.0-RELEASE-p5-GENERIC-amd64.json
Tested it on several FreeBSD 14.0 and 14.1 kernels, works well. Will offer minor integration addition (freebsd subcommand) as PR to author's fork.