Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dwarf2json: add FreeBSD kernel support #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ant1
Copy link

@ant1 ant1 commented Jun 25, 2024

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

FreeBSD kernel ISF can be generated the same way as Linux
FreeBSD kernel has a "version" string in the ".data" section
@securechicken
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants