From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7SON-0001O3-JA for qemu-devel@nongnu.org; Tue, 02 Dec 2008 05:22:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7SOL-0001Np-Ub for qemu-devel@nongnu.org; Tue, 02 Dec 2008 05:22:07 -0500 Received: from [199.232.76.173] (port=47097 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7SOL-0001Nj-Nu for qemu-devel@nongnu.org; Tue, 02 Dec 2008 05:22:05 -0500 Received: from nf-out-0910.google.com ([64.233.182.186]:28597) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7SOL-0003eN-Ec for qemu-devel@nongnu.org; Tue, 02 Dec 2008 05:22:05 -0500 Received: by nf-out-0910.google.com with SMTP id b2so1642942nfb.12 for ; Tue, 02 Dec 2008 02:22:02 -0800 (PST) Message-ID: <761ea48b0812020222q54e19fdlc5fcae9cd8c0fc4f@mail.gmail.com> Date: Tue, 2 Dec 2008 11:22:02 +0100 From: "Laurent Desnogues" Subject: Re: [Qemu-devel] Cannot launch application with qemu-mips In-Reply-To: <5391e10b0812020212j3e55fbdfk5b34e948e810622b@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> 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 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. Laurent