qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] qemu/linux-user elfload.c


From: Blue Swirl
Subject: Re: [Qemu-devel] qemu/linux-user elfload.c
Date: Fri, 6 Jul 2007 00:46:12 +0300

On 7/4/07, Thiemo Seufer <address@hidden> wrote:
Blue Swirl wrote:
> Modified files:
>       linux-user     : elfload.c
I think this will break loading of 32bit kernels in a 64bit capable
Qemu (like MIPS64). Could you make the test of ELFCLASS a runtime
check?

The ELF loader is different for system emulator (loader.c and
elf_ops.h vs. elfload.c) (why?), this patch was for linux-user. It's
not possible to load 32 bit files with a 64 bit user emulator
currently. For Sparc that might be useful as there is a hybrid ELF
format used by Solaris, where the file is 32 bits but the CPU is 64
bits.

The same 64 to 32 bit symbol conversion happens on system emulator
side already. ELF class selects the correct version of elf_ops
(loader.c:232), therefore either word size is OK.




reply via email to

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