Re: [Qemu-devel] qemu user x86 working?

2011-02-15 Thread Andi Kleen
On Sat, Feb 12, 2011 at 10:08:26AM +0200, Blue Swirl wrote: > On Sat, Feb 12, 2011 at 12:27 AM, Andi Kleen wrote: > > > >> I don't have any problems running a statically linked x86_64 > >> helloworld program in an i386 chroot. Dynamically linked programs try > >> to use wrong libraries, but at lea

Re: [Qemu-devel] qemu user x86 working?

2011-02-12 Thread Blue Swirl
On Sat, Feb 12, 2011 at 12:27 AM, Andi Kleen wrote: > >> I don't have any problems running a statically linked x86_64 >> helloworld program in an i386 chroot. Dynamically linked programs try >> to use wrong libraries, but at least running >> /lib64/ld-linux-x86-64.so.2 directly works. > > static b

Re: [Qemu-devel] qemu user x86 working?

2011-02-11 Thread Mulyadi Santosa
On Sat, Feb 12, 2011 at 05:27, Andi Kleen wrote: > static binary segfaults too. I wonder if it's some setup on my system. > > I tried disabling the usual suspects like address randomization, but that > didn't change things. > Or could it be the compiler (gcc 4.5)? > > I remember using this quite s

Re: [Qemu-devel] qemu user x86 working?

2011-02-11 Thread Andi Kleen
I don't have any problems running a statically linked x86_64 helloworld program in an i386 chroot. Dynamically linked programs try to use wrong libraries, but at least running /lib64/ld-linux-x86-64.so.2 directly works. static binary segfaults too. I wonder if it's some setup on my system. I

Re: [Qemu-devel] qemu user x86 working?

2011-02-11 Thread Blue Swirl
On Fri, Feb 11, 2011 at 9:49 PM, Andi Kleen wrote: > Hi, > > Is the linux-user qemu for x86-64/i386 supposed to work? > > For example running it with a simple hello world on FC14 in gdb: > > /home/ak/tsrc/hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), > dynamically linked (uses share

[Qemu-devel] qemu user x86 working?

2011-02-11 Thread Andi Kleen
Hi, Is the linux-user qemu for x86-64/i386 supposed to work? For example running it with a simple hello world on FC14 in gdb: /home/ak/tsrc/hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped [Thread debugging us