dwarf2: Pad size of .debug_line section.
authorChristian Eggers <ceggers@gmx.de>
Sun, 10 Mar 2019 18:21:57 +0000 (19:21 +0100)
committerAlan Modra <amodra@gmail.com>
Wed, 13 Mar 2019 02:59:35 +0000 (13:29 +1030)
commit145c4477d239fef4e31a457ff8a1ba7153e9a448
treecbd268da0c41af0f7b82a96f257322e17e6c4071
parent5c4e5fe61bb00395f697a928524da1e94087c677
dwarf2: Pad size of .debug_line section.

As all dwarf debug information is organized in octets, the size of all
dwarf sections must be aligned to OCTETS_PER_BYTE.  Most DWARF sections
meet this requirement, only the .debug_line section can reach an
arbitrary octet size.

In order to align the size to a multiple of OCTETS_PER_BYTE, the section
is padded with "nop" statements at the end.

* dwarf2dbg.c (out_debug_line): Pad size of .debug_line section.
gas/ChangeLog
gas/dwarf2dbg.c