diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-12-12 22:22:03 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-12-12 22:22:03 +0000 |
commit | 26ac73a7de1ba347046f7d23400439e682e79ed5 (patch) | |
tree | e5d8c117f4610cb987bbed7a62f4b6e00a247be7 /ldso/ldso/dl-hash.c | |
parent | 774a6c5c91078aed0e926cc6817aa10a2f5d2281 (diff) |
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
Diffstat (limited to 'ldso/ldso/dl-hash.c')
-rw-r--r-- | ldso/ldso/dl-hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |