https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90441
--- Comment #9 from Iain Sandoe <iains at gcc dot gnu.org> --- this is on the rev *before* the change, using llvm-dwarfdump from the llvm-7 branch: iains@gcc122:~/gcc-trunk/A$ ../../llvm-710-build/bin/llvm-dwarfdump --verify firmware.elf Verifying firmware.elf: file format ELF64-x86-64 Verifying .debug_abbrev... Verifying .debug_info Unit Header Chain... Verifying .debug_info references... error: invalid DIE reference 0x00000000. Offset is in between DIEs: 0x00000029: DW_TAG_imported_unit DW_AT_import (0x0000000000000000) 0x0000002e: DW_TAG_imported_unit DW_AT_import (0x0000000000000000) 0x00000033: DW_TAG_imported_unit DW_AT_import (0x0000000000000000) 0x00000038: DW_TAG_subprogram DW_AT_abstract_origin (0x0000000000000000) DW_AT_low_pc (0x00000000004003b0) DW_AT_high_pc (0x00000000004003b0) DW_AT_frame_base (DW_OP_call_frame_cfa) DW_AT_GNU_all_call_sites (true) 0x0000004f: DW_TAG_variable DW_AT_abstract_origin (0x0000000000000000) DW_AT_location (DW_OP_addr 0x0) Errors detected.