https://sourceware.org/bugzilla/show_bug.cgi?id=22776
Bug ID: 22776 Summary: internal error in dwarf_reader.cc Product: binutils Version: 2.29 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: evstupac at gmail dot com CC: ian at airs dot com Target Milestone: --- Created attachment 10777 --> https://sourceware.org/bugzilla/attachment.cgi?id=10777&action=edit bad (causing internal error) object file To reproduce: ld.gold test_bad.o /usr/lib64/libc.so.6 ld.gold: internal error in format_file_lineno, at ../../binutils-2.29/gold/dwarf_reader.cc:2249 libc I use: 2.7 compiled by GNU CC version 4.8.5 20150623 (Red Hat 4.8.5-16) on a Linux 3.10.0 system on 2017-06-16 The error was triggered by switching dwarf version from 2 to 4 in llvm compiler (svn r319699 or git a61e335ed0ae118bf3ce579c9b33ea277463bff0). Attached good and bad object files (for Linux) and corresponding readelf. There is only 2 bytes difference between .debug_line sections there. The one that triggers linker internal error is: 0406 instead of 0306 gold linker reads first symbol (04 in bad case) as elfcpp::DW_LNS_set_file (dwarf_reader.cc line 1819) and as elfcpp::DW_LNS_advance_line in good case (03). The debug information is only for 5 files in the test. An attempt to access 6th file causes internal error. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils