summaryrefslogtreecommitdiff
path: root/libexec/ld.so/alpha/rtld_machine.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-09-01 23:55:02 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-09-01 23:55:02 +0000
commit25abf7bda5e902b39f11b5f27aa9a4a0763e356e (patch)
tree29198d0ab88d624b1c554f8213a327337fe872ed /libexec/ld.so/alpha/rtld_machine.c
parent8501ae123a8f4ab8af508172423598b70e63c82f (diff)
Make sure that the symbol return value is always initialized before
the address of it is passed to dl_find_symbol(). fixes xpdf lazy binding problem. ok art@
Diffstat (limited to 'libexec/ld.so/alpha/rtld_machine.c')
-rw-r--r--libexec/ld.so/alpha/rtld_machine.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/alpha/rtld_machine.c b/libexec/ld.so/alpha/rtld_machine.c
index c6f27d23d93..1e3bfb123ac 100644
--- a/libexec/ld.so/alpha/rtld_machine.c
+++ b/libexec/ld.so/alpha/rtld_machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtld_machine.c,v 1.15 2002/08/23 22:57:03 drahn Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.16 2002/09/01 23:55:01 drahn Exp $ */
/*
* Copyright (c) 1999 Dale Rahn
@@ -197,6 +197,7 @@ _dl_bind(elf_object_t *object, Elf_Word reloff)
symn = object->dyn.strtab + sym->st_name;
addr = (Elf_Addr *)(object->load_offs + rela->r_offset);
+ this = NULL;
ooff = _dl_find_symbol(symn, _dl_objects, &this,
SYM_SEARCH_ALL|SYM_WARNNOTFOUND|SYM_PLT, sym->st_size);
if (this == NULL) {