[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/29442] New: objdump: DWARF error: could not find variable
From: |
mliska at suse dot cz |
Subject: |
[Bug binutils/29442] New: objdump: DWARF error: could not find variable specification at offset 0x3d3 with dwz |
Date: |
Wed, 03 Aug 2022 14:32:28 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=29442
Bug ID: 29442
Summary: objdump: DWARF error: could not find variable
specification at offset 0x3d3 with dwz
Product: binutils
Version: 2.37
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: mliska at suse dot cz
Target Milestone: ---
The following simple test case fails when dwz is used:
$ cat demo.C
namespace std {
enum { _S_fixed, _S_floatfield = _S_fixed };
struct {
struct {};
}
__ioinit;
}
int main() {
return 0;
}
$ g++ demo.C -g && cp a.out b.out && dwz -m xxx.so a.out b.out && objdump -S
a.out >/dev/null
objdump: DWARF error: could not find variable specification at offset 0x3d3
As seen the reference is defined in xxx.so shared part:
$ eu-readelf -w -N a.out | grep -A3 -B3 3d3
decl_column (data1) 11
sibling (ref_udata) [ 387]
[ 387] variable abbrev: 30
specification (GNU_ref_alt) [ 3d3]
location (exprloc)
[ 0] addr 0x404019
[ 396] subprogram abbrev: 32
$ eu-readelf -w -N a.out | less
...
Compilation unit at offset 920:
Version: 5, Abbreviation section offset: 0, Address size: 8, Offset size: 4
Unit type: partial (3)
...
[ 3d3] variable abbrev: 31
name (strp) "__ioinit"
decl_file (data1) demo.C (10)
decl_line (data1) 6
decl_column (data1) 3
type (ref_udata) [ 3c4]
declaration (flag_present) yes
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/29442] New: objdump: DWARF error: could not find variable specification at offset 0x3d3 with dwz,
mliska at suse dot cz <=
- [Bug binutils/29442] objdump: DWARF error: could not find variable specification at offset 0x3d3 with dwz, mliska at suse dot cz, 2022/08/03
- [Bug binutils/29442] objdump: DWARF error: could not find variable specification at offset 0x3d3 with dwz, mliska at suse dot cz, 2022/08/03
- [Bug binutils/29442] objdump: DWARF error: could not find variable specification at offset 0x3d3 with dwz, mliska at suse dot cz, 2022/08/08
- [Bug binutils/29442] objdump: DWARF error: could not find variable specification at offset 0x3d3 with dwz, cvs-commit at gcc dot gnu.org, 2022/08/08
- [Bug binutils/29442] objdump: DWARF error: could not find variable specification at offset 0x3d3 with dwz, mliska at suse dot cz, 2022/08/08