diff --git a/compiler/dbgdwarf.pas b/compiler/dbgdwarf.pas index 798c64d0fb..1d6ec8bfb0 100644 --- a/compiler/dbgdwarf.pas +++ b/compiler/dbgdwarf.pas @@ -1354,7 +1354,10 @@ implementation append_labelentry_addr_ref(sym) else begin - AddConstToAbbrev(ord(DW_FORM_ref4)); + if use_64bit_headers then + AddConstToAbbrev(ord(DW_FORM_ref8)) + else + AddConstToAbbrev(ord(DW_FORM_ref4)); current_asmdata.asmlists[al_dwarf_info].concat(tai_const.create_rel_sym(offsetreltype,current_asmdata.DefineAsmSymbol(target_asm.labelprefix+'debug_info0',AB_LOCAL,AT_METADATA,voidpointertype),sym)); end; end;