RFC: objdump: Add --debug-dir=<DIR> option

Frank Ch. Eigler fche@redhat.com
Mon Apr 20 16:31:53 GMT 2026


Nick Clifton <nickc@redhat.com> writes:

>   Attached is a potential patch to improve objdump and readelf by adding
>   a command line option that specifies a directory to be searched when
>   looking for separate debug information files.  I found this to be very
>   helpful when the debug information is not stored in one of the
>   "standard" locations expected by the programs. [...]

By the way, you can handle this scenario easily enough by running a
local temporary copy of elfutils debuginfod, giving it a list of your
build subdirectories:

    debuginfod -p 8003 -d :memory: -F /build/tree/1 /build/tree/2 &
    export DEBUGINFOD_URLS=http://localhost:8003/

The toolchain can then find sources & binaries & debuginfo.

- FChE



More information about the Binutils mailing list