bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/20876] objdump is not aware about the build ID method to f


From: mark at klomp dot org
Subject: [Bug binutils/20876] objdump is not aware about the build ID method to find detached debug info
Date: Wed, 11 Jan 2017 13:44:18 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=20876

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
Just a note that elfutils searches only the (global?) absolute debuginfo paths
directly.

So given the default of "":.debug:/usr/lib/debug", it skips the "" relative cwd
and the ".debug" postfix, but only tries /usr/lib/debug/.build-id/xx/yyyy.debug

So the search strategy of elfutils for a separate .debug file given a build-id
xxyyyy and a list of debuginfo search paths is to take the absolute paths
(starting with '/') and trying /path/.build-id/xx/yyyy.debug. Where the default
list of (absolute) debuginfo search paths is just "/usr/lib/debug". It then
takes the canonicalize_file_name assuming it might be a symlink and the user
might find the resolved name more interesting. As a sanity check elfutils also
only allows build-ids that are at a minimum 4 and at a maximum 64 hex
characters long. It does normally also verify that the found file does contain
the build-id it should and reject the file if it doesn't.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]