nativeGen/dwarf: Fix procedure end addresses
Previously the .debug_aranges and .debug_info (DIE) DWARF
information would claim that procedures (represented with a
DW_TAG_subprogram DIE) would only span the range covered by their entry
block. This omitted all of the continuation blocks (represented by
DW_TAG_lexical_block DIEs), confusing perf. Fix this by introducing
a end-of-procedure label and using this as the DW_AT_high_pc of
procedure DW_TAG_subprogram DIEs
Fixes #17605 (closed).
Additionally fix two smaller issues:
- Generate
DW_TAG_source_notenodes only with-g3 - Use the
DW_AT_linkage_nameattribute instead ofDW_AT_MIPS_linkage_name(it's unclear why this was used originally)
Edited by Ben Gamari