From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15519 invoked by alias); 26 Jun 2006 13:03:09 -0000 Received: (qmail 15509 invoked by uid 22791); 26 Jun 2006 13:03:09 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 26 Jun 2006 13:03:06 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Fuqk3-0007Jv-Sp; Mon, 26 Jun 2006 09:03:04 -0400 Date: Mon, 26 Jun 2006 15:00:00 -0000 From: Daniel Jacobowitz To: Niklaus Cc: gdb@sources.redhat.com Subject: Re: arm-elf and mips-deb-linux gdb Message-ID: <20060626130303.GA28081@nevyn.them.org> Mail-Followup-To: Niklaus , gdb@sources.redhat.com References: <85e0e3140606240419ge81ab34ubdbf64dc0ee352f0@mail.gmail.com> <20060624132745.GA26555@nevyn.them.org> <85e0e3140606260342m1cb35c83xe1cc0a1873eda427@mail.gmail.com> <20060626123839.GA27262@nevyn.them.org> <85e0e3140606260558u489a926cuf1d2e714b691315b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <85e0e3140606260558u489a926cuf1d2e714b691315b@mail.gmail.com> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00238.txt.bz2 On Mon, Jun 26, 2006 at 06:28:53PM +0530, Niklaus wrote: > On 6/26/06, Daniel Jacobowitz wrote: > >Thanks. This is why I asked for a complete transcript - now it is > >apparent what is wrong. > > > >On Mon, Jun 26, 2006 at 04:42:43PM +0600, Niklaus wrote: > >> pro@deb:~/armenv/bin$ ./arm-elf-gdb first.o > > > >You have to run the simulator using fully linked executables, not just > >object files. See the linker scripts that are part of newlib. > > > Can you tell why it fails . I would like to know the reason why it > fails. Which linker script would you recommend. I don't know anything about building for arm-elf; you'll have to ask somewhere else. It fails because your application has not been linked. It doesn't have startup code, it doesn't have relocations applied. The simulator has probably branched off into nowhere. -- Daniel Jacobowitz CodeSourcery