From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15464 invoked by alias); 26 Mar 2007 20:03:48 -0000 Received: (qmail 15434 invoked by uid 22791); 26 Mar 2007 20:03:46 -0000 X-Spam-Check-By: sourceware.org Received: from w099.z064220152.sjc-ca.dsl.cnc.net (HELO bluesmobile.specifix.com) (64.220.152.99) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 26 Mar 2007 21:03:37 +0100 Received: from localhost.localdomain (bluesmobile.specifix.com [64.220.152.99]) by bluesmobile.specifix.com (Postfix) with ESMTP id 4A6753B9DF; Mon, 26 Mar 2007 13:03:36 -0700 (PDT) Subject: Re: File not recognized in objdump!! From: Jim Wilson To: Aashish Gupta Cc: binutils@sourceware.org, binutils@sources.redhat.com, Nick Clifton In-Reply-To: <2538a28f0703252214y11a5fb55t5aab41af522580e0@mail.gmail.com> References: <2538a28f0703252214y11a5fb55t5aab41af522580e0@mail.gmail.com> Content-Type: text/plain Date: Mon, 26 Mar 2007 23:02:00 -0000 Message-ID: <1174939416.2811.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) Content-Transfer-Encoding: 7bit Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00389.txt.bz2 Message-ID: <20070326230200.o27SkryZ6fPncA2eu8cxh1FhrnZxea315MaVxFXdegY@z> 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