From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTgPR-0004HD-7l for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:19:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTgPM-0004ED-7m for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:19:20 -0400 Received: from [199.232.76.173] (port=54320 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTgPM-0004Dz-0h for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:19:16 -0400 In-Reply-To: <4A6755D7.8060101@codemonkey.ws> (Anthony Liguori's message of "Wed\, 22 Jul 2009 13\:09\:27 -0500") References: <4A670CA3.6030800@codemonkey.ws> <4A674082.8070405@gnu.org> <4A6755D7.8060101@codemonkey.ws> From: Juan Quintela Date: Wed, 22 Jul 2009 20:19:01 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 00/37] Generate a proper LIBS variable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Paolo Bonzini , qemu-devel@nongnu.org Anthony Liguori wrote: > Juan Quintela wrote: >> Anthony, what do you think of merging a search path like this: >> >> /usr/local/lib64;/lib64;/usr/lib64;/usr/local/lib;/lib;/usr/lib >> >> This seems more similar to the one that my linker has. >> >> Patch sent as new thread. >> > > I'd rather see the us generate a config-host.ld that contained the > output of ld --verbose -v | grep SEARCH_DIR and then do: Only for x86_64 or all architectures? Once here. > diff --git a/x86_64.ld b/x86_64.ld > index 878dafb..7920bdd 100644 > --- a/x86_64.ld > +++ b/x86_64.ld > @@ -2,7 +2,7 @@ > OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64") > OUTPUT_ARCH(i386:x86-64) > ENTRY(_start) > -SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64"); > SEARCH_DIR("/usr/local/lib64"); > +INCLUDE "config-host.ld" > SECTIONS > { > /* Read-only sections, merged into text segment: */ > > Regards, > > Anthony Liguori > >> Later,