Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2002 11:58:26 +0300
From:      "Alexey V. Neyman" <alex.neyman@auriga.ru>(by way of Alexey V. Neyman <alex.neyman@auriga.ru>)
To:        John Polstra <jdp@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/libexec/rtld-elf rtld.c
Message-ID:  <02012711582605.01347@vagabond.auriga.ru>

next in thread | raw e-mail | index | archive | help
hi, there!

Are you sure this change is right? As my copy of ELF specifications 
from Intel's Tool Interface Standards states, the linker should have 
the following order of searching (pg. 2-15):

%%%
- First, the dynamic array tag DT_RPATH may give a string that holds a 
list of directories separated by colons (:). For example, the string 
/home/dir/lib:/home/dir2/lib: tells the dynamic linker to search first 
the directory /home/dir/lib, then /home/dir2/lib and then the current 
directory to find dependencies.

- Second, a variable called LD_LIBRARY_PATH in the process environment 
may hold a list of directories as above, optionally followed by a 
semicolon and another directory list.

[skip]

All LD_LIBRARY_PATH directories are searched after those from DT_RPATH.
%%%

I'm almost sure this change should be reverted. Please also see PR 
#28406 and the commit log for revision 1.21 of 
src/libexec/rtld-elf/rtld.c.

Best regards,
Alexey.

On 25 January 2002 19:35, you wrote:
> jdp         2002/01/25 08:35:44 PST
> 
>   Modified files:
>     libexec/rtld-elf     rtld.c 
>   Log:
>   Change the library search order so that LD_LIBRARY_PATH overrides
>   all others.

-- 
<------------------------->
 ) May the Sun and Water (   Regards, Alexey V. Neyman
 ) always fall upon you! (   mailto:alex.neyman@auriga.ru
<------------------------->


-- 
<------------------------->
 ) May the Sun and Water (   Regards, Alexey V. Neyman
 ) always fall upon you! (   mailto:alex.neyman@auriga.ru
<------------------------->

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02012711582605.01347>