Source-Changes-HG archive

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

[src/trunk]: src/libexec/ld.elf_so When dlopen()'ing a shared object without ...



details:   https://anonhg.NetBSD.org/src/rev/1dd5be68da38
branches:  trunk
changeset: 474819:1dd5be68da38
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jul 22 00:18:19 1999 +0000

description:
When dlopen()'ing a shared object without an absolute pathname, search
for it in the rpath of the main program as well as the path specified
in LD_LIBRARY_PATH.

diffstat:

 libexec/ld.elf_so/rtld.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 4ae5987a87bb -r 1dd5be68da38 libexec/ld.elf_so/rtld.c
--- a/libexec/ld.elf_so/rtld.c  Wed Jul 21 23:41:27 1999 +0000
+++ b/libexec/ld.elf_so/rtld.c  Thu Jul 22 00:18:19 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtld.c,v 1.20 1999/06/15 15:54:28 kleink Exp $  */
+/*     $NetBSD: rtld.c,v 1.21 1999/07/22 00:18:19 thorpej Exp $         */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -546,7 +546,7 @@
        if (name == NULL) {
                obj = _rtld_objmain;
        } else {
-               char *path = _rtld_find_library(name, NULL);
+               char *path = _rtld_find_library(name, _rtld_objmain);
                if (path != NULL)
                        obj = _rtld_load_object(path, true);
        }



Home | Main Index | Thread Index | Old Index