From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15253 invoked by alias); 17 May 2004 21:07:06 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15243 invoked from network); 17 May 2004 21:07:06 -0000 Received: from unknown (209.128.65.135) by sourceware.org with QMTP; 17 May 2004 21:07:06 -0000 Received: (qmail 5897 invoked by uid 10); 17 May 2004 21:07:05 -0000 Received: (qmail 21945 invoked by uid 500); 17 May 2004 21:06:54 -0000 From: Ian Lance Taylor To: "Bloch, Jack" Cc: "''gdb@sources.redhat.com' '" Subject: Re: BFD question References: <7A25937D23A1E64C8E93CB4A50509C2A0310F1A9@stca204a.bus.sc.rolm.com> Date: Mon, 17 May 2004 21:07:00 -0000 In-Reply-To: <7A25937D23A1E64C8E93CB4A50509C2A0310F1A9@stca204a.bus.sc.rolm.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-05/txt/msg00111.txt.bz2 "Bloch, Jack" writes: > objdump -f Coregen > > Coregen: file format elf32-i386 > architecture: i386, flags 0x00000112: > EXEC_P, HAS_SYMS, D_PAGED > start address 0x08048400 > > > This looks good to me. > > By the way, I forgot to show in my code listing that p_file is a char * > passed in as a parameter ans is set to "/usr/coretest/Coregen" Well, objdump thinks the value of bfd_get_file_flags is 0x112. Your code looks OK at a cursory glance. I don't know what the problem is. Sorry. Ian