From: Hengqi Chen <hengqi.chen@gmail.com>
To: elfutils-devel@sourceware.org
Subject: dwarf_nextcu can't handle abbrev offset correctly ?
Date: Thu, 1 Dec 2022 23:34:49 +0800 [thread overview]
Message-ID: <b5a5fbc6-19de-cd5b-422b-a09bf0d35623@gmail.com> (raw)
Hi,
I am using pahole (which relies on libelf) to process an elf file ([0]):
LLVM_OBJCOPY="objcopy" pahole -J --btf_gen_floats --btf_base vmlinux adl_pci9111.ko
This failed with:
die__process: DW_TAG_compile_unit, DW_TAG_type_unit, DW_TAG_partial_unit or DW_TAG_skeleton_unit expected got member (0xd)!
The .ko contains two CU, readelf says that the abbrev offsets are at 0 and 0x907,
but dwarf_nextcu reports that abbrev offsets are both at 0.
pahole expects to find DW_TAG_compile_unit, but seams that the wrong abbrev offset causes the failure.
[0]: https://gitlab.com/chenhengqi/loong-debug
--
Hengqi
next reply other threads:[~2022-12-01 15:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-01 15:34 Hengqi Chen [this message]
2022-12-01 15:54 ` Mark Wielaard
2022-12-02 2:03 ` Hengqi Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b5a5fbc6-19de-cd5b-422b-a09bf0d35623@gmail.com \
--to=hengqi.chen@gmail.com \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).