From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4608 invoked by alias); 9 Apr 2003 06:33:29 -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 4599 invoked from network); 9 Apr 2003 06:33:28 -0000 Received: from unknown (HELO hrtades9.atea.be) (194.78.143.106) by sources.redhat.com with SMTP; 9 Apr 2003 06:33:28 -0000 Received: from hrtades10.atea.be (siemens.atea.be [139.10.143.141]) by hrtades9.atea.be with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1RFVNX7Z; Wed, 9 Apr 2003 08:33:27 +0200 Received: by siemens.atea.be with Internet Mail Service (5.5.2653.19) id ; Wed, 9 Apr 2003 08:33:27 +0200 Message-ID: <57FD2C3A246F76438CA6FDAD8FE9F19597E9D3@hrtades7.atea.be> From: Vermeulen Jan To: 'Peter Barada' , gdb@sources.redhat.com Cc: Peter.Barada@motorola.com Subject: RE: How to build application to run under the ppc simulator? Date: Wed, 09 Apr 2003 06:33:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2003-04/txt/msg00079.txt.bz2 Peter, > I've built a --target=ppc-eabi toolchain, and I've built a tiny little > test program: > > int a,b; > int foo(void) > { > a = 0x1234 > b = 0x5678; > } > Btw, the simulator always tries to execute main, not a 'foo' program. You can also adjust the linker script to start at 'foo' instead of main with the ENTRY directive. But I'm a bit puzzled: why didn't the compiler complain about not finding a main-routine? Can you tell us what versions of gcc, gdb & binutils you used for making your cross toolchain? Grz, Jan