From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7TLa-00012g-Ap for qemu-devel@nongnu.org; Tue, 02 Dec 2008 06:23:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7TLY-000125-GW for qemu-devel@nongnu.org; Tue, 02 Dec 2008 06:23:17 -0500 Received: from [199.232.76.173] (port=35290 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7TLY-00011y-7Y for qemu-devel@nongnu.org; Tue, 02 Dec 2008 06:23:16 -0500 Received: from wa-out-1112.google.com ([209.85.146.182]:33695) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7TLX-0001H5-Rq for qemu-devel@nongnu.org; Tue, 02 Dec 2008 06:23:16 -0500 Received: by wa-out-1112.google.com with SMTP id j5so1463667wah.18 for ; Tue, 02 Dec 2008 03:23:14 -0800 (PST) Message-ID: <5391e10b0812020323o34eea036r3d83ed298782a0de@mail.gmail.com> Date: Tue, 2 Dec 2008 16:53:14 +0530 From: "Himanshu Singh Chauhan" Subject: Re: [Qemu-devel] Cannot launch application with qemu-mips In-Reply-To: <5391e10b0812020317l4cafdae8p69bf1c82d89eb808@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5391e10b0812020212j3e55fbdfk5b34e948e810622b@mail.gmail.com> <761ea48b0812020222q54e19fdlc5fcae9cd8c0fc4f@mail.gmail.com> <5391e10b0812020317l4cafdae8p69bf1c82d89eb808@mail.gmail.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 On Tue, Dec 2, 2008 at 4:47 PM, Himanshu Singh Chauhan wrote: > On Tue, Dec 2, 2008 at 3:52 PM, Laurent Desnogues > wrote: >> On Tue, Dec 2, 2008 at 11:12 AM, Himanshu Singh Chauhan >> wrote: >>> Hi, >>> >>> I downloaded MIPS toolchain from Denx website. I compiled a hello >>> world application with the tool chain. When I run this application >>> with qemu-mips, it gives me /lib/ld.so.1: no such file or directory >>> error. I ran this command: qemu-mips -L ./opt/eldk ./test -cpu 4Kc >>> >>> The ld.so.1 is actually located in ./opt/eldk/mips_4Kc/lib. When I >>> hexdump'ed the application, it is referring to /lib/ld.so.1. >>> >>> Is this an issue with the toolchain? How do I run this. I want to >>> learn MIPS assembly, I had been using SPIM for now. But I want to get >>> into real syntax of GNU as. So I was trying this. >> >> you should try with -L ./opt/eldk/mips_4Kc. >> > I tried running with this. But qemu terminates with error: > qemu: uncaught target signal 4 (Illegal Instruction) - exiting The application runs fine when statically linked.