This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH v2] libdw: Try .gnu_debugaltlink paths relative to the debug file
- From: Josh Stone <jistone at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 16 Dec 2013 16:57:45 -0800
- Subject: Re: [PATCH v2] libdw: Try .gnu_debugaltlink paths relative to the debug file
On 12/16/2013 03:29 PM, Roland McGrath wrote:
>> In Fedora, these paths are relative to the debug file itself, so that's
>> a better thing to try first. We don't actually have the debug path in
>> libdw, but we can usually find it from elf->fildes and /proc/self/fd/.
> That's even more barfalicious (extreme Linuxism kludgery to paper over
> lousy component layering) than the whole abomination of the libdw layer
> opening files in the first place.
It's a bit of a kludge, sure, but not so extreme IMO. Even though it is
Linux-specific, it will fail harmlessly on other systems and carry on as
But I understand you're not thrilled with the status quo either. Mark
mentioned that maybe we should revisit this, and push the alt file
perparation out to libdwfl. He just didn't trick me into doing it yet. :)