From 26ac73a7de1ba347046f7d23400439e682e79ed5 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 12 Dec 2002 22:22:03 +0000 Subject: Rework things such that staticly linked applications can use dlopen and have it be successful. This required moving some things out of ldso.c into readelflib1.c, and directly including hash.c and readelflib1.c into dlib.c when building the static version of the library. -Erik --- ldso/ldso/dl-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldso/ldso/dl-hash.c') diff --git a/ldso/ldso/dl-hash.c b/ldso/ldso/dl-hash.c index 282555f93..6922ba9de 100644 --- a/ldso/ldso/dl-hash.c +++ b/ldso/ldso/dl-hash.c @@ -185,7 +185,7 @@ char *_dl_find_hash(const char *name, struct dyn_elf *rpnt1, that any shared library data symbols referenced in the executable will be seen at the same address by the executable, shared libraries and dynamically loaded code. -Rob Ryan (robr@cmu.edu) */ - if (!caller_type && rpnt1) { + if (_dl_symbol_tables && !caller_type && rpnt1) { first = (*_dl_symbol_tables); first.next = rpnt1; rpnt1 = (&first); -- cgit v1.2.3