https://sourceware.org/bugzilla/show_bug.cgi?id=23941
Bug ID: 23941
Summary: .debug_line section has a dwarf version set to 2 while
supporting opcode from dwarf3
Product: binutils
Version: 2.32 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: gagou7 at gmail dot com
Target Milestone: ---
I am developing a tool for parsing the DWARF format based on the specs
(http://www.dwarfstd.org/doc/dwarf-2.0.0.pdf). The dwarf 2.0 specs defines 9
opcode inside the .debug_line section.
Looking at the source code of gas, those line are inconsistant in regards to
the spec for DWARF 2.0.
dwarf2dbg.c:102 #define DWARF2_LINE_VERSION 2
dwarf2dbg.c:128 #define DWARF2_LINE_OPCODE_BASE 13
The main issue is that gas, while saying it is DWARF 2.0 compliant, support in
fact 3 more opcodes
- DW_LNS_set_prologue_end
- DW_LNS_set_epilogue_begin
- DW_LNS_set_isa
The fix should be to set DWARF2_LINE_VERSION default to 3 like for ld.gold for
example.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils