This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: File not recognized in objdump!!


On Mon, 2007-03-26 at 10:44 +0530, Aashish Gupta wrote:
> I am trying to modify objdump to dump object file information for a
> ELF64 file but on a different
> kernel but its giving an error saying file format not recognized.

Trying the command
  grep "File format not recognized"
we find it is defined in bfd.c.  Looking at this file, we see that this
is in an error, and an enum defined nearby shows that the array index is
bfd_error_file_not_recognized.  So now grepping for that enum, we find
that there are two bfd_set_error calls in the file format.c that use it.
Both calls are in the function bfd_check_format_matches.  Run objdump
under gdb, put a breakpoint here, and step through the code to see what
it is doing.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]