How to debug BFD error "file format not recognized."

Alan Modra amodra@gmail.com
Wed Jan 21 00:41:29 GMT 2026


On Tue, Jan 20, 2026 at 04:31:41PM +0000, k4lizen wrote:
> ping

You are asking for very basic debugging advice, which is likely why no
one has responded.

First, objdump -i to make sure you compiled in the required object
support, then put breakpoints on the BFD_SEND_FMT calls in
bfd_check_format_matches.  Trace through the one you think should
match (look at abfd->xvec to see what is attempted).

-- 
Alan Modra


More information about the Binutils mailing list