diff options
Diffstat (limited to 'libexec/ld.so/dlfcn.c')
-rw-r--r-- | libexec/ld.so/dlfcn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/ld.so/dlfcn.c b/libexec/ld.so/dlfcn.c index 8fc1ee588fe..e3ec5317409 100644 --- a/libexec/ld.so/dlfcn.c +++ b/libexec/ld.so/dlfcn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dlfcn.c,v 1.18 2002/08/11 16:51:04 drahn Exp $ */ +/* $OpenBSD: dlfcn.c,v 1.19 2002/08/23 22:57:03 drahn Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -126,7 +126,8 @@ dlsym(void *handle, const char *name) return(0); } - retval = (void *)_dl_find_symbol(name, object, &sym, 1, 1, 0); + retval = (void *)_dl_find_symbol(name, object, &sym, + SYM_SEARCH_SELF|SYM_WARNNOTFOUND|SYM_NOTPLT, 0); if (sym != NULL) retval += sym->st_value; else |