dwarf2: Fix calculation of line info offset
authorChristian Eggers <ceggers@gmx.de>
Sun, 10 Mar 2019 18:21:52 +0000 (19:21 +0100)
committerAlan Modra <amodra@gmail.com>
Wed, 13 Mar 2019 02:39:03 +0000 (13:09 +1030)
commit71250b94dc669b285cddcb744a7b3d1c7e2ec94b
treeebcdb5c8d9ed91b4622ba4324f86186420d4c6e8
parent4ffd4ef39318559f8d45ce05bba4c303e522c28e
dwarf2: Fix calculation of line info offset

The units of the value returned by "frag_now_fix()" and "size" do not
match. "frag_now_fix()" returns bytes (can be 8, 16 or 32 bit), while
"size" is octets (exactly 8 bit).

* dwarf2dbg.c (dwarf2_emit_insn): Fix calculation of line info offset.
gas/ChangeLog
gas/dwarf2dbg.c