gas: Output directory and file names in .debug_line_str for DWARF5
authorMark Wielaard <mark@klomp.org>
Mon, 7 Sep 2020 13:03:20 +0000 (14:03 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 7 Sep 2020 13:03:20 +0000 (14:03 +0100)
commitd2a54558074287721ce9e47142f7fa92bda15531
treec8bb313bdfd20f3105bc554434624ca7e3562433
parentbdd3b953e24c3d2bc55e06e30e0ef5e0ff829e3f
gas: Output directory and file names in .debug_line_str for DWARF5

* dwarf2dbg.c (add_line_strp): New function.
(out_dir_and_file_list): Take line_seg and sizeof_offset as
arguments, Use DW_FORM_line_strp for dir and file. Call
add_line_strp and set symbol offset for DWARF2_LINE_VERSION 5.
(out_debug_line): Call out_dir_and_file_list with line_seg and
sizeof_offset.
* gas/testsuite/gas/elf/dwarf-5-file0.d: Expect indirect line
strings.
gas/ChangeLog
gas/dwarf2dbg.c
gas/testsuite/gas/elf/dwarf-5-file0.d