gas: Output .debug_rnglists for DWARF 5.
authorMark Wielaard <mark@klomp.org>
Mon, 7 Sep 2020 12:04:45 +0000 (13:04 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 7 Sep 2020 12:04:45 +0000 (13:04 +0100)
commitbdd3b953e24c3d2bc55e06e30e0ef5e0ff829e3f
treec6415f1a3f91bf0dcdde10b956fcb9782740d9fd
parentb0b3ea7e10443f211267babcac99ac6677d593ce
gas: Output .debug_rnglists for DWARF 5.

* dwarf2dbg.c (DWARF2_RNGLISTS_VERSION): New constant.
(out_debug_ranges): Add ranges_sym argument and set it.
(out_debug_rnglists): New function.
(out_debug_info): Change ranges_seg argument to ranges_sym
and use it to set DW_AT_ranges value.
(dwarf2_finish): Remove ranges_seg, add ranges_sym. For
DWARF2_VERSION 5 call out_debug_rnglists.
gas/ChangeLog
gas/dwarf2dbg.c