From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTiZZ-0000LK-Dl for qemu-devel@nongnu.org; Wed, 22 Jul 2009 16:37:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTiZQ-0000Jr-UT for qemu-devel@nongnu.org; Wed, 22 Jul 2009 16:37:52 -0400 Received: from [199.232.76.173] (port=45938 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTiZP-0000Jm-VB for qemu-devel@nongnu.org; Wed, 22 Jul 2009 16:37:48 -0400 Received: from mx2.redhat.com ([66.187.237.31]:35450) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTiZP-0008K6-Cc for qemu-devel@nongnu.org; Wed, 22 Jul 2009 16:37:47 -0400 From: Juan Quintela Date: Wed, 22 Jul 2009 22:37:37 +0200 Message-Id: Subject: [Qemu-devel] [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: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com Hi 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. Once playing with linker scripts, just: a- remove mips little endian linker scripts. Rest of the build system don't support them at all (and they are the same than for big endian) b- once here, instead of repeating the LDFLAGS line for each architecture, just generate it in a single place in configure c- now that there are few places, add the new linker script. Comments? Later, Juan. Changes from v1/v2: - complete different approach Juan Quintela (3): our build system don't support mips little endian linux-user or bsd-user generate LDFLAGS for *-linux-user and *-bsd-user in a single place in configure set SEARCH_PATH for the linker script from output of ld --verbose -v Makefile | 2 +- Makefile.target | 148 ------------------------------------ alpha.ld | 1 - arm.ld | 1 - configure | 52 +++++++++++++ hppa.ld | 1 - i386.ld | 1 - ia64.ld | 4 +- m68k.ld | 4 +- mips.ld | 1 - mipsel.ld | 225 ------------------------------------------------------- ppc.ld | 1 - ppc64.ld | 8 +-- s390.ld | 4 +- sparc.ld | 1 - sparc64.ld | 1 - x86_64.ld | 1 - 17 files changed, 57 insertions(+), 399 deletions(-) delete mode 100644 mipsel.ld