aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-05-24 01:06:00 +0000
committerUlrich Drepper <drepper@redhat.com>2000-05-24 01:06:00 +0000
commit5e76a3468a034c261c0f7c3034186545f412bf20 (patch)
treee0c1d3e955139622f0e4b6fd3d5e46c7061d90ef
parent2d499f55d78a0265310f5ec931b45172ba39bdb4 (diff)
downloadglibc-5e76a3468a034c261c0f7c3034186545f412bf20.tar
glibc-5e76a3468a034c261c0f7c3034186545f412bf20.tar.gz
glibc-5e76a3468a034c261c0f7c3034186545f412bf20.tar.bz2
glibc-5e76a3468a034c261c0f7c3034186545f412bf20.zip
Update.
* elf/dl-sym.c: Minor cleanups.
-rw-r--r--ChangeLog2
-rw-r--r--elf/dl-sym.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6f62a3a318..3faf0b8aec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2000-05-23 Ulrich Drepper <drepper@redhat.com>
+ * elf/dl-sym.c: Minor cleanups.
+
* configure.in: Add test for .protected.
* config.make.in: Add have-protected variable.
* elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
diff --git a/elf/dl-sym.c b/elf/dl-sym.c
index 8ab6f2c64e..d2de7db464 100644
--- a/elf/dl-sym.c
+++ b/elf/dl-sym.c
@@ -37,7 +37,8 @@ _dl_sym (void *handle, const char *name, void *who)
result = _dl_lookup_symbol (name, NULL, &ref, _dl_global_scope, 0);
else
{
- struct link_map *l, *match;
+ struct link_map *l;
+ struct link_map *match;
ElfW(Addr) caller = (ElfW(Addr)) who;
/* Find the highest-addressed object that CALLER is not below. */
@@ -101,7 +102,8 @@ _dl_vsym (void *handle, const char *name, const char *version, void *who)
&vers, 0);
else if (handle == RTLD_NEXT)
{
- struct link_map *l, *match;
+ struct link_map *l;
+ struct link_map *match;
ElfW(Addr) caller = (ElfW(Addr)) who;
/* Find the highest-addressed object that CALLER is not below. */
@@ -132,5 +134,6 @@ RTLD_NEXT used in code not dynamically loaded"));
if (ref)
return DL_SYMBOL_ADDRESS (result, ref);
+
return NULL;
}