[PATCH v2] libdw: Try .gnu_debugaltlink paths relative to the debug file

Josh Stone jistone at redhat.com
Tue Dec 17 00:57:45 UTC 2013


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
before.

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. :)

Josh


More information about the elfutils-devel mailing list