From 9a927b3cbb4b309f01de9473e5aad69f41df1d9a Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 31 Aug 2003 06:51:54 +0000 Subject: Weed out duplicates before trying to load libraries.... Delayed checking for duplicates and returning an alias if an existing lib is already loaded is still correct for the dlopen case. --- ldso/include/dl-elf.h | 1 + ldso/include/ld_elf.h | 1 + 2 files changed, 2 insertions(+) (limited to 'ldso/include') diff --git a/ldso/include/dl-elf.h b/ldso/include/dl-elf.h index 95de118f5..992a608b1 100644 --- a/ldso/include/dl-elf.h +++ b/ldso/include/dl-elf.h @@ -68,6 +68,7 @@ extern struct elf_resolve * _dl_load_shared_library(int secure, struct dyn_elf **rpnt, struct elf_resolve *tpnt, char *full_libname); extern struct elf_resolve * _dl_load_elf_shared_library(int secure, struct dyn_elf **rpnt, char *libname); +extern struct elf_resolve *_dl_check_if_named_library_is_loaded(const char *full_libname); extern int _dl_linux_resolve(void); diff --git a/ldso/include/ld_elf.h b/ldso/include/ld_elf.h index 95de118f5..992a608b1 100644 --- a/ldso/include/ld_elf.h +++ b/ldso/include/ld_elf.h @@ -68,6 +68,7 @@ extern struct elf_resolve * _dl_load_shared_library(int secure, struct dyn_elf **rpnt, struct elf_resolve *tpnt, char *full_libname); extern struct elf_resolve * _dl_load_elf_shared_library(int secure, struct dyn_elf **rpnt, char *libname); +extern struct elf_resolve *_dl_check_if_named_library_is_loaded(const char *full_libname); extern int _dl_linux_resolve(void); -- cgit v1.2.3