From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HrKhw-0006q7-LD for qemu-devel@nongnu.org; Thu, 24 May 2007 17:18:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HrKhv-0006pv-77 for qemu-devel@nongnu.org; Thu, 24 May 2007 17:18:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HrKhv-0006ps-1K for qemu-devel@nongnu.org; Thu, 24 May 2007 17:18:51 -0400 Received: from an-out-0708.google.com ([209.85.132.251]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HrKht-0007b6-Pk for qemu-devel@nongnu.org; Thu, 24 May 2007 17:18:50 -0400 Received: by an-out-0708.google.com with SMTP id d11so153618and for ; Thu, 24 May 2007 14:18:49 -0700 (PDT) Message-ID: Date: Thu, 24 May 2007 14:18:48 -0700 From: "Jonathan Kalbfeld" Subject: Re: [Qemu-devel] Porting QEMU to PalmOS In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_158778_23951904.1180041528485" References: <331073.34873.qm@web54608.mail.yahoo.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_158778_23951904.1180041528485 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline One definite plus with having QEMU for PalmOS is the ability to run things like OpenVPN (even if slow) and connect to a VPN back-end. As is, I use OpenVPN tunnels to link up my QEMU machines on Solaris. jonathan On 5/23/07, Wolfgang Schildbach wrote: > > Try compiling as position-dependent (i.e. not PIC) code. GOT is a typical > feature of position independent code. > > - Wolfgang > > qemu-devel-bounces+wolfgang.schildbach=codingtechnologies.com@nongnu.org > wrote on 23.05.2007 13:20:22: > > > Hi Johannes, > > > > thanks for your quick response. > > I thought QEMU was already compiled and run on an ARM machine? > > If so, how come that noone else had such problem (I searched for it > > on google), > > and PXA255 is a standard ARM CPU with a few additional instructions. > > And how to make them not come from GOT, those vars are declared as > extern, > > so they are globals? > > > > BR, > > Voda. > > > ----- Original Message ---- > > From: Johannes Schindelin > > To: sinisa marovic > > Cc: qemu-devel@nongnu.org > > Sent: Wednesday, May 23, 2007 12:48:59 PM > > Subject: Re: [Qemu-devel] Porting QEMU to PalmOS > > > Hi, > > > > On Wed, 23 May 2007, sinisa marovic wrote: > > > > > Relocation types that fail are 25 and 26, which are R_ARM_GOTPC and > > > R_ARM_GOT32 respectively. Their names are: > > > > > > _GLOBAL_OFFSET_TABLE_ > > > cc_table > > > __op_param1 > > > __op_param2 > > > __op_param3 > > > > > > Is there a way to fix this? > > > > The GOT is an offset table. Many CPUs have fixed-size instruction sets, > > which means that you cannot easily jump to an absolute address, since > the > > address alone would already fill up the size. > > > > Of course, this is a no-no for QEmu, since the _same_ function snippet > > will be reused _multiple_ times. So, the address must not come from a > GOT, > > but be inserted directly into the code. > > > > I do not remember off-hand how I managed to do this a couple of years > ago, > > when I worked on a MIPS host, but there _are_ gcc options to avoid a > GOT. > > > > Hth, > > Dscho > > > > > > Food fight? Enjoy some healthy debate > > in the Yahoo! Answers Food & Drink Q&A. > > > > -- -- Jonathan Kalbfeld +1 323 620 6682 ------=_Part_158778_23951904.1180041528485 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline One definite plus with having QEMU for PalmOS is the ability to run things like OpenVPN (even if slow) and connect to a VPN back-end.

As is, I use OpenVPN tunnels to link up my QEMU machines on Solaris.

jonathan

On 5/23/07, Wolfgang Schildbach <Wolfgang.Schildbach@codingtechnologies.com> wrote:
Try compiling as position-dependent (i.e. not PIC) code. GOT is a typical
feature of position independent code.

- Wolfgang

qemu-devel-bounces+wolfgang.schildbach=codingtechnologies.com@nongnu.org
wrote on 23.05.2007 13:20:22:

> Hi Johannes,
>
>    thanks for your quick response.
> I thought QEMU was already compiled and run on an ARM machine?
> If so, how come that noone else had such problem (I searched for it
> on google),
> and PXA255 is a standard ARM CPU with a few additional instructions.
> And how to make them not come from GOT, those vars are declared as
extern,
> so they are globals?
>
> BR,
>    Voda.

> ----- Original Message ----
> From: Johannes Schindelin < Johannes.Schindelin@gmx.de>
> To: sinisa marovic <sinisamarovic@yahoo.com>
> Cc: qemu-devel@nongnu.org
> Sent: Wednesday, May 23, 2007 12:48:59 PM
> Subject: Re: [Qemu-devel] Porting QEMU to PalmOS

> Hi,
>
> On Wed, 23 May 2007, sinisa marovic wrote:
>
> > Relocation types that fail are 25 and 26, which are R_ARM_GOTPC and
> > R_ARM_GOT32 respectively. Their names are:
> >
> > _GLOBAL_OFFSET_TABLE_
> > cc_table
> > __op_param1
> > __op_param2
> > __op_param3
> >
> > Is there a way to fix this?
>
> The GOT is an offset table. Many CPUs have fixed-size instruction sets,
> which means that you cannot easily jump to an absolute address, since
the
> address alone would already fill up the size.
>
> Of course, this is a no-no for QEmu, since the _same_ function snippet
> will be reused _multiple_ times. So, the address must not come from a
GOT,
> but be inserted directly into the code.
>
> I do not remember off-hand how I managed to do this a couple of years
ago,
> when I worked on a MIPS host, but there _are_ gcc options to avoid a
GOT.
>
> Hth,
> Dscho
>
>
> Food fight? Enjoy some healthy debate
> in the Yahoo! Answers Food & Drink Q&A.






--
--
Jonathan Kalbfeld
+1 323 620 6682 ------=_Part_158778_23951904.1180041528485--