[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu qemu-doc.texi

From: Paul Brook
Subject: Re: [Qemu-devel] qemu qemu-doc.texi
Date: Mon, 12 Jun 2006 15:18:34 +0100
User-agent: KMail/1.9.1

On Monday 12 June 2006 15:09, Wolfgang Schildbach wrote:
> Hi Paul,
> Does this mean that qemu-arm should be able to run the binaries that are
> produced by RVCT? I am trying to run a simple helloworld, compiled and
> linked with rvct2.2 (armcc -g -o hello hello.c) into a "ELF 32-bit LSB
> executable, ARM, version 1 (SYSV), statically linked, not stripped" file,
> but qemu-arm fails with an "error loading ./hello".

Yes it should be able to run RVCT binaries. The problem is that the qemu 
loader assumes the LMA and file offsets be page aligned (ie. be the same 
modulo the page size). This is part of the ABI for linux executables so that 
the binary can be mmapped directly into memory. RVCT does not enforce this 
alignment by default.

> On a related note, how do I go about debugging qemu (namely the part that
> loads executables)? Since qemu appears as a shared object, this is not so
> straightforward. When I start gdb on arm-user, set a breakpoint at main()
> and type "run", I get

Configure with --static.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]