This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libdw: Cache ELF directory early. Explicitly set it in dwfl.
- From: Mark Wielaard <mark at klomp dot org>
- To: elfutils-devel at sourceware dot org
- Date: Sun, 20 May 2018 23:45:16 +0200
- Subject: Re: [PATCH] libdw: Cache ELF directory early. Explicitly set it in dwfl.
- References: <1526579022-4486-1-git-send-email-mark@klomp.org>
On Thu, May 17, 2018 at 07:43:42PM +0200, Mark Wielaard wrote:
> The logic that finds alt files and dwo files relies on having an open
> file descriptor. But after all needed ELF data has been read the
> underlying Elf file descriptor can be closed. libdwfl in particular
> closes file descriptor fairly aggressively. So capture the directory
> early on. And make dwfl set it if it has recorded it. Which it will
> do now before closing a file descriptor for the main Dwfl_Module file.
Pushed to master.