qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2] Change search path for libraries for x86_64 link


From: quintela
Subject: [Qemu-devel] [PATCH v2] Change search path for libraries for x86_64 linker script
Date: Wed, 22 Jul 2009 19:20:18 +0200

From: Juan Quintela <address@hidden>

Hi

v2.
it is /usr/ not /user/, good catch from Paolo.

v1.

Current script don't search in /usr/local/lib.  If you install locally 
libraries,
they normally install there, indeed in 64 bits system (a.k.a Anthony machine)

Looking at ouput of ld --verbose -v | grep SEARCH_DIR
(thanks Paolo Bonzini for the tip), this new list and order looks more natural,
and fixes Anthony problems.

Anthony, can you include this patch "before" my series?

Thanks in advance, Juan.


Signed-off-by: Juan Quintela <address@hidden>
---
 x86_64.ld |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/x86_64.ld b/x86_64.ld
index 878dafb..e6f36ec 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");
+SEARCH_DIR("/usr/local/lib64"); SEARCH_DIR("/lib64"); 
SEARCH_DIR("/usr/lib64");SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); 
SEARCH_DIR("/usr/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
-- 
1.6.2.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]