From: Sonal Santan <sonals@xilinx.com>
To: "elfutils-devel@sourceware.org" <elfutils-devel@sourceware.org>
Subject: Working with ELF already loaded in memory
Date: Thu, 8 Jul 2021 05:02:43 +0000 [thread overview]
Message-ID: <BY5PR02MB6260DD7F130AA98334CCF886BB199@BY5PR02MB6260.namprd02.prod.outlook.com> (raw)
Hello,
We are exploring using libdw in XRT, https://github.com/Xilinx/XRT. In the use case we have, the ELF (a shared library) is already loaded in memory as data by an XRT application. In XRT we would like to walk through the DWARF/ELF information embedded in this shared library.
Going through the libdw it appears that all APIs require either a file handle or a file name of the ELF object to create a session. Since we do not have access to the ELF file -- but rather the ELF file contents are already loaded in memory -- is there any other mechanism to create a session for extracting DWARF information using libdw?
Thanks,
-Sonal
next reply other threads:[~2021-07-08 5:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-08 5:02 Sonal Santan [this message]
2021-07-08 15:02 ` Mark Wielaard
2021-07-09 5:34 ` Sonal Santan
2021-07-09 11:00 ` Mark Wielaard
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=BY5PR02MB6260DD7F130AA98334CCF886BB199@BY5PR02MB6260.namprd02.prod.outlook.com \
--to=sonals@xilinx.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).