From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G1sih-0005pZ-FM for qemu-devel@nongnu.org; Sat, 15 Jul 2006 18:34:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G1sig-0005oc-1R for qemu-devel@nongnu.org; Sat, 15 Jul 2006 18:34:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1sif-0005oZ-Rs for qemu-devel@nongnu.org; Sat, 15 Jul 2006 18:34:41 -0400 Received: from [64.233.166.182] (helo=py-out-1112.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G1sky-0004Y0-T6 for qemu-devel@nongnu.org; Sat, 15 Jul 2006 18:37:04 -0400 Received: by py-out-1112.google.com with SMTP id c63so1065118pyc for ; Sat, 15 Jul 2006 15:34:40 -0700 (PDT) Message-ID: <5b5833aa0607151534w266d1164if03f75ff1de3978b@mail.gmail.com> Date: Sat, 15 Jul 2006 18:34:40 -0400 From: "Anderson Lizardo" Subject: Re: [Qemu-devel] fix for qemu-* looping forever on symlinks (patch attached) In-Reply-To: <200607140430.01678.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8e2a98be0607131931i614eae05n8b95715e13f46efd@mail.gmail.com> <200607140430.01678.paul@codesourcery.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 7/13/06, Paul Brook wrote: > The whole point of the -L option is so that it picks up target shared > libraries, eg. in lib and usr/lib. By my reading your patch makes the -L > option do absolutely nothing, which can't be right. > > The proper fix is to do the lookups when a file is accesses (possibly with > caching) not pre-scan the whole tree. Is it possible to use the same cache format as ld.so (/etc/ld.so.cache)? So a command like qemu-arm -L /target program would make qemu look for /target/etc/ld.so.cache as its cache, and a command like: qemu-arm -L /target /target/sbin/ldconfig would update this cache. Unless the cache you are proposing has different purposes than ld.so's cache? Regards, -- Anderson Lizardo