]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: Recognize .debug_dwp section in scn_dwarf_type as TYPE_DWO
authorMark Wielaard <mark@klomp.org>
Mon, 13 Apr 2026 21:30:45 +0000 (23:30 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 14 Apr 2026 00:07:01 +0000 (02:07 +0200)
commit9ba5dfd4744308eb41f00b4dace629bd2d172d39
treec34274c55e56860492b8fa9184a7764a95f10cb2
parent7369e7d9f1711bb0ffdb9710665b84aa756dbcc2
libdw: Recognize .debug_dwp section in scn_dwarf_type as TYPE_DWO

dwarf_begin_elf tries to guess what type of Dwarf we have. When it
sees a .debug_dwp section it assumed it was TYPE_PLAIN instead of
TYPE_DWO and would try to find more "plain" .debug sections (ignoring
other .dwo sections). This would cause it to not detect any debug
sections in a .dwp file containing a .debug_dwp section.

* libdw/dwarf_begin_elf.c (scn_dwarf_type): Recognize
.debug_dwp or .zdebug_dwp sections.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/dwarf_begin_elf.c