gas: Use udata for DW_AT_high_pc when emitting DWARF4
authorMark Wielaard <mark@klomp.org>
Mon, 3 Aug 2020 20:02:24 +0000 (22:02 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 4 Aug 2020 09:42:53 +0000 (11:42 +0200)
commit6b9a135d72c3826b9b5e2a5d35acfb777ec18dcd
tree8d49ce5f3a515c53d657750160adda825017a990
parentf63d03dde00449e71e32fea3496edc69d2e7d386
gas: Use udata for DW_AT_high_pc when emitting DWARF4

For DWARF4 DW_AT_high_pc can be expressed as constant offset from
DW_AT_low_pc which saves a relocation. Use DW_FORM_udate (uleb128)
to keep the constant value as small as possible.

gas/ChangeLog:

       * dwarf2dbg.c (out_debug_abbrev): When DWARF2_VERSION >= 4, use
       DW_FORM_udata for DW_AT_high_pc.
       (out_debug_info): Use emit_leb128_expr for DW_AT_high_pc, when
       DWARF2_VERSION >= 4.
       * read.c (emit_leb128_exp): No longer static.
       * read.h (emit_leb128_exp): Define.
gas/ChangeLog
gas/dwarf2dbg.c
gas/read.c
gas/read.h
This page took 0.034102 seconds and 4 git commands to generate.