3 ms·
pahole gives you compilable C header files from ELF DWARF information. LLMs seems irrelevant here: either your header files have all the types exported from the
by chc4 2y ago
pahole gives you compilable C header files from ELF DWARF information. LLMs seems irrelevant here: either your header files have all the types exported from the executable correctly so they are usable with the original values, or they aren't correct/complete and having an LLM make up some more doesn't help.
Ghidra also has native functionality to export its data structures, which it can create from DWARF structures (Right click -> Export to C header).