bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/29266] New: readelf ..info misreports DW_FORM_strxN


From: sevaa at sprynet dot com
Subject: [Bug binutils/29266] New: readelf ..info misreports DW_FORM_strxN
Date: Mon, 20 Jun 2022 17:47:17 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29266

            Bug ID: 29266
           Summary: readelf ..info misreports DW_FORM_strxN
           Product: binutils
           Version: 2.39 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: sevaa at sprynet dot com
  Target Milestone: ---

Created attachment 14153
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14153&action=edit
Test binary and sources

Consider the debug information in the attached binary. It consists of two
compilation units - foo.cpp and bar.cpp. Run "readelf --debug-dump=info foo"
with the latest master as of 2022-06-20. It reports the value of DW_AT_name as
"foo.cpp" for both compilation units. That can't be right.

Internally, it looks as if the logic of resolving DW_FORM_strx,
DW_FORM_strx1..4 form attributes looks into the portion of the
debug_str_offsets section that pertains to the top CU as opposed to the current
CU. Elsewhere, it also causes numerous bogus warnings like
"DW_FORM_GNU_str_index offset too big: 0x1350 vs 0xbf0", where the str_offset
count in the current CU is greater than that in the top CU.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]