* [Qemu-devel] [PATCH] Change search path for libraries for x86_64 linker script
@ 2009-07-22 17:02 quintela
2009-07-22 17:13 ` [Qemu-devel] " Paolo Bonzini
0 siblings, 1 reply; 2+ messages in thread
From: quintela @ 2009-07-22 17:02 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
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 <quintela@redhat.com>
---
x86_64.ld | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/x86_64.ld b/x86_64.ld
index 878dafb..065c14e 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("/user/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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Qemu-devel] Re: [PATCH] Change search path for libraries for x86_64 linker script
2009-07-22 17:02 [Qemu-devel] [PATCH] Change search path for libraries for x86_64 linker script quintela
@ 2009-07-22 17:13 ` Paolo Bonzini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2009-07-22 17:13 UTC (permalink / raw)
To: quintela; +Cc: qemu-devel
> -SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64"); SEARCH_DIR("/usr/local/lib64");
> +SEARCH_DIR("/user/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: */
What I was thinking about was extracting it at configure time inside the
linker script, like
ld --verbose -v | grep SEARCH_DIR > config.ld
sed '/SEARCH_DIR/{;rconfig.ld;s/.*//;}' x86_64.ld.in > x86_64.ld
but besides the typo "/user" this looks good enough to me.
Paolo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-22 17:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-22 17:02 [Qemu-devel] [PATCH] Change search path for libraries for x86_64 linker script quintela
2009-07-22 17:13 ` [Qemu-devel] " Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).