Fix more crashes in DWARF and ELF