cesena / ghidra2dwarf

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

enum SHT has no entry with code 1879048193. #12

Closed komakai closed 1 year ago

komakai commented 2 years ago

I get the above error trying to run ghidra2dwarf against an arm android library. 1879048193 is 0x70000001 which is SHT_LOPROC + 1 The check for valid SHT values needs to be able to allow any value between SHT_LOPROC and SHT_HIPROC (same for SHT_LOUSER and SHT_HIUSER as well)

lacraig2 commented 2 years ago

This is probably their limited SHT list. This is a more comprehensive list. https://github.com/osandov/drgn/blob/main/tests/elf.py