DWARF: Add header for .debug_str_offsets table for dwarf_version 5.
authorMark Wielaard <mark@klomp.org>
Wed, 16 May 2018 18:20:08 +0000 (18:20 +0000)
committerMark Wielaard <mark@gcc.gnu.org>
Wed, 16 May 2018 18:20:08 +0000 (18:20 +0000)
commitbb14f4c6da3da116c7b88c482daadaf3522870e8
tree3bb789d93570fae93640b2818905fbb60acf8e72
parentc0134358c5a8a9a92b10d08f2c43f5876d9a0d07
DWARF: Add header for .debug_str_offsets table for dwarf_version 5.

DWARF5 defines a small header for .debug_str_offsets.  Since we only use
it for split dwarf .dwo files we don't need to keep track of the actual
index offset in an attribute.

gcc/ChangeLog

* dwarf2out.c (count_index_strings): New function.
(output_indirect_strings): Call count_index_strings and generate
header for dwarf_version >= 5.

From-SVN: r260298
gcc/ChangeLog
gcc/dwarf2out.c