[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] RFC: ARM prologue linkage fix
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] RFC: ARM prologue linkage fix |
Date: |
Tue, 8 Jul 2008 21:43:46 +0100 |
User-agent: |
KMail/1.9.9 |
On Tuesday 08 July 2008, Blue Swirl wrote:
> Hi,
>
> I made a patch which allows sparc-linux-user target to be linked on an
> ARM host. Is this OK? Sparc32 helloworld program runs successfully,
> otherwise untested.
In principle it looks ok, however:
I think it deserves a comment in exec.c saying why we do this - the prologue
is reached via a direct jump, so must be placed close to the code segment.
Also, calling something .bss.code_gen, than placing it is .data is just asking
for trouble :-) I suggest calling the section ".gen_code".
We probably want the same thing on sparc and ppc hosts. I guess they can be
added as required though.
Paul