cesena / ghidra2dwarf

🐉 Export ghidra decompiled code to dwarf sections inside ELF binary
MIT License
186 stars 17 forks source link

DWARF v5 source code embedding extension? #14

Open Manouchehri opened 2 years ago

Manouchehri commented 2 years ago

Would be cool if we could embed the decompiled file into the output ELF. This is only supported as of DWARFv5 (I think it's backwards compatible with DWARFv4, so likely won't hurt).

Probably requires adding DW_LNCT_has_source and DW_LNCT_source to Ghidra first, not sure.

https://reviews.llvm.org/D42765

https://reviews.llvm.org/D42766