[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/23843] New: shouldn't "objdump -e dwarf=links" print multi
From: |
m-srcware at bodyfour dot uk |
Subject: |
[Bug binutils/23843] New: shouldn't "objdump -e dwarf=links" print multiple entries? |
Date: |
Mon, 29 Oct 2018 15:36:51 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23843
Bug ID: 23843
Summary: shouldn't "objdump -e dwarf=links" print multiple
entries?
Product: binutils
Version: 2.32 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: m-srcware at bodyfour dot uk
Target Milestone: ---
When multiple objects that were compiled with "-gsplit-dwarf" are later linked
together the resulting ELF binary will have references to multiple *.dwo files,
which "objdump --dwarf=info" shows correctly. However "objdump -dwarf=links"
only prints the last(?) one and silently ignores the rest which seems
incorrect to me.
For an example, see the reproduction case attached to the (unrelated) Bug 23842
that I just filed. After compiling it, you see:
$ ~/git/binutils-gdb/binutils/objdump --dwarf=info exe/exe | egrep
'DW_AT_GNU_dwo_name|DW_AT_comp_dir'
<20> DW_AT_GNU_dwo_name: (indirect string, offset: 0x0): exe.dwo
<24> DW_AT_comp_dir : (indirect string, offset: 0x8):
/home/mitch/split-dwarf-multidir/exe
<54> DW_AT_GNU_dwo_name: (indirect string, offset: 0x53): a.dwo
<58> DW_AT_comp_dir : (indirect string, offset: 0x2d):
/home/mitch/split-dwarf-multidir/liba
<88> DW_AT_GNU_dwo_name: (indirect string, offset: 0x7f): b.dwo
<8c> DW_AT_comp_dir : (indirect string, offset: 0x59):
/home/mitch/split-dwarf-multidir/libb
$ ~/git/binutils-gdb/binutils/objdump --dwarf=links exe/exe
exe/exe: file format elf64-x86-64
The .debug_info section contains a link to a dwo file:
Name: b.dwo
Directory: /home/mitch/split-dwarf-multidir/libb
ID: b3 d9 32 5b a3 75 ed 4d
Forgive me if this is user error; I am new to -gsplit-dwarf.
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug binutils/23843] New: shouldn't "objdump -e dwarf=links" print multiple entries?,
m-srcware at bodyfour dot uk <=