From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HbKsu-0006dA-2d for qemu-devel@nongnu.org; Tue, 10 Apr 2007 14:16:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HbKss-0006cy-Ba for qemu-devel@nongnu.org; Tue, 10 Apr 2007 14:16:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbKss-0006cv-6y for qemu-devel@nongnu.org; Tue, 10 Apr 2007 14:16:02 -0400 Received: from gw.netgem.com ([195.68.2.34] helo=mail4.dev.netgem.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HbKot-0003w2-W9 for qemu-devel@nongnu.org; Tue, 10 Apr 2007 14:11:56 -0400 Received: from netgem.com (frsrvsbs.dev.netgem.com [172.17.16.160]) by mail4.dev.netgem.com with ESMTP id l3AIBrfa005861 for ; Tue, 10 Apr 2007 18:11:53 GMT Subject: Re: [Qemu-devel] linux-user target From: Jocelyn Mayer In-Reply-To: References: Content-Type: text/plain Date: Tue, 10 Apr 2007 20:11:52 +0200 Message-Id: <1176228712.22569.27.camel@jma4.dev.netgem.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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 On Tue, 2007-04-10 at 09:34 -0400, Stuart Anderson wrote: > I'm trying to test my fixes to the linux-user emulation on some additonal > architectures now, but I'm running into problems. I can debug these some, > but any suggestions or guidence, especially from people more familiar > with the architecture core code, would be appreciated. [...] > PPC: > > I am unable to get any executable to run. > > > projects:~/upstream/qemu# ./ppc-linux-user/qemu-ppc -L /mirror0/chroots/ppc/ /mirror0/chroots/ppc/bin/bash > init_ppc_proc: PVR 00080000 mask ffffffff => 00080000 > Segmentation fault > projects:~/upstream/qemu# > Just checked, on an amd64 host with a random powerpc bash version I got on my hard disk drive: ./ppc-linux-user/qemu-ppc -L /mnt/local/hdc/part3/PPC/linux/archives /mnt/local/hdc/part3/PPC/linux/archives/bin/bash --version init_ppc_proc: PVR 00080000 mask ffffffff => 00080000 GNU bash, version 2.05a.0(1)-release (powerpc-unknown-linux-gnu) Copyright 2001 Free Software Foundation, Inc. ./ppc-linux-user/qemu-ppc -L /mnt/local/hdc/part3/PPC/linux/archives /mnt/local/hdc/part3/PPC/linux/archives/bin/bash.static --version init_ppc_proc: PVR 00080000 mask ffffffff => 00080000 GNU bash, version 2.05b.0(1)-release (powerpc-unknown-linux-gnu) Copyright (C) 2002 Free Software Foundation, Inc. I also tried to really launch the shell and use it and it worked. jocelyn@rapid:qemu-merge\> ps ww [...] 29026 pts/57 Ss+ 0:00 bash -rcfile .bashrc 29269 pts/33 S 0:00 ./ppc-linux-user/qemu-ppc -L /mnt/local/hdc/part3/PPC/linux/archives /mnt/local/hdc/part3/PPC/linux/archives/bin/bash 29930 pts/33 R+ 0:00 ps ww jocelyn@rapid:qemu-merge\> ps PID TTY TIME CMD 28941 pts/33 00:00:00 bash 29269 pts/33 00:00:00 qemu-ppc 30017 pts/33 00:00:00 ps jocelyn@rapid:qemu-merge\> ... I have to admit there are some strange behaviors with some features... But I think recent builds using glibc with TLS/NPTL would not run. Here are informations about the glibc used by this bash version: ./ppc-linux-user/qemu-ppc -L /mnt/local/hdc/part3/PPC/linux/archives /mnt/local/hdc/part3/PPC/linux/archives/usr/bin/objdump -f /mnt/local/hdc/part3/PPC/linux/archives/lib/libc-2.2.5.so init_ppc_proc: PVR 00080000 mask ffffffff => 00080000 /mnt/local/hdc/part3/PPC/linux/archives/lib/libc-2.2.5.so: file format elf32-powerpc architecture: powerpc:common, flags 0x00000150: HAS_SYMS, DYNAMIC, D_PAGED start address 0x00025db4 file /mnt/local/hdc/part3/PPC/linux/archives/bin/bash /mnt/local/hdc/part3/PPC/linux/archives/bin/bash: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped If this can help..... -- Jocelyn Mayer