Bug ID: 22776
           Summary: internal error in
           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
bad (causing internal error) object file

To reproduce: test_bad.o /usr/lib64/ internal error in format_file_lineno, at

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
( 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

Reply via email to