Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTtv7-0001WN-42 for qemu-devel@nongnu.org; Thu, 23 Jul 2009 04:44:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTtv2-0001UY-8H for qemu-devel@nongnu.org; Thu, 23 Jul 2009 04:44:56 -0400 Received: from [199.232.76.173] (port=47247 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTtv2-0001UU-2O for qemu-devel@nongnu.org; Thu, 23 Jul 2009 04:44:52 -0400 Received: from mx2.redhat.com ([66.187.237.31]:36117) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTtv1-0007Dy-DJ for qemu-devel@nongnu.org; Thu, 23 Jul 2009 04:44:51 -0400 In-Reply-To: <4A681719.5050700@redhat.com> (Paolo Bonzini's message of "Thu\, 23 Jul 2009 09\:54\:01 +0200") References: <4A681719.5050700@redhat.com> From: Juan Quintela Date: Thu, 23 Jul 2009 10:44:43 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 0/3 v3] Change search path for libraries for x86_64 linker script List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org Paolo Bonzini wrote: >> As requested for Anthony, we use as search path the output of: >> >> ld --verbose -v | grep SEARCH_PATH >> >> Anthony suggestion was to use a INCLUDE in the linker script, but it got >> complicated because we have a relative path, and we want to get it working >> with VPATH .... >> >> Then I decided to use a second linker script for the search path instead of >> one INCLUDE. > > I don't understand one thing. Is this patch now using the linker > script for all architectures? If so, it should be enough to call it > LDFLAGS_USER and add LDFLAGS+=$(USER_LDFLAGS) where the configuration > of linker scripts used to be done in the Makefile--or not? It is using the linker scripts for everything that was using it before, not a single more, neither a single less. Just a bit of DRY, putting the commond code in a single place. > BTW, maybe now the -Wl,-shared trick for self-virtualization can be > replaced with -fpie (position independent executable)? That is far away of my knowledge. That is clearly not my call. Later, Juan.