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

Nick Clifton nickc@redhat.com
Tue Apr 21 09:32:43 GMT 2026


Hi Frank,

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

Thanks for the tip :-).

Cheers
   Nick



More information about the Binutils mailing list