From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24514 invoked by alias); 18 Apr 2003 00:46:30 -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 24504 invoked from network); 18 Apr 2003 00:46:29 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 18 Apr 2003 00:46:29 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 196Jv2-0002qr-00; Thu, 17 Apr 2003 19:39:56 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 196Jun-0008MJ-00; Thu, 17 Apr 2003 20:39:41 -0400 Date: Fri, 18 Apr 2003 00:46:00 -0000 From: Daniel Jacobowitz To: Bjorn De Sutter Cc: gdb@sources.redhat.com Subject: Re: problems cross-compiling gcc + uClibc + gdb Message-ID: <20030418003941.GA24665@nevyn.them.org> Mail-Followup-To: Bjorn De Sutter , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-04/txt/msg00212.txt.bz2 On Fri, Apr 18, 2003 at 02:25:17AM +0200, Bjorn De Sutter wrote: > Hi, > > on an i386 linux system, I've cross-compiled gcc and newlib as follows: > > ../gcc-3.2.2/configure --prefix=/home/brdsutte/embedded/build-gcc --enable-target-optspace --with-newlib --target=arm-elf > gmake all install > > Then, I've build uClibc with CROSS=arm-elf- as follows: > > make KERNEL_SOURCE=/home/brdsutte/embedded/linux TARGET_ARCH=arm > > the linux kernel I used for that compilation (i.e. who's headers are > used during the compilation of uClibc) was a standard linux 2.4.19, > patched with patch-2.4.19-rmk7 for the arm, and then configured for > arm-integrator > > I then compiled gdb as follows: > > ../gdb+dejagnu-20030417/configure --prefix=/home/brdsutte/embedded/build-gdb --target=arm-elf > gmake all install > > When I run a hello world program that I compiled with arm-elf-gcc using > arm-elf-gdb, everything works all right, but when I compile the same > program with arm-uclibc-gcc, trying to run the program results in the > following: > > [brdsutte@elrond vb]$ arm-linux-run b.out > sim: unknown SWI encountered - 900036 - ignoring > > One of the differences between the two version of the programs is that > the newlib version only contains system calls swi 0x00123456, while > the uClibc version contains system calls such as swi 0x00900001 > > Is there a way to have gdb handle these system calls, or do I need to > change the way system calls are implemented in uClibc? > > I am not on this mailing list, so please respond to my emailaddress as > well. The simulator does not support Linux system calls; so you'll have to change either the simulator or uclibc. Possibly both. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer