diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-05-25 18:07:22 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-05-25 18:07:22 +0000 |
commit | 09c2c1a651b8caebf963956ee871e5ea48bcb12b (patch) | |
tree | 625eee2ffbfe0ed2b4c096d9ac2544a5f2ab1dcb /libexec/ld.so/loader.c | |
parent | 4f40e8347f536a8fa0e2caf3e7014349d1d34217 (diff) |
return object* the symbol is in for _dl_find_symbol*; drahn@ ok
Diffstat (limited to 'libexec/ld.so/loader.c')
-rw-r--r-- | libexec/ld.so/loader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/loader.c b/libexec/ld.so/loader.c index a7b50098fe6..3dd23776a06 100644 --- a/libexec/ld.so/loader.c +++ b/libexec/ld.so/loader.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loader.c,v 1.76 2004/05/25 15:56:18 deraadt Exp $ */ +/* $OpenBSD: loader.c,v 1.77 2004/05/25 18:07:20 mickey Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -406,7 +406,7 @@ _dl_boot(const char **argv, char **envp, const long loff, long *dl_data) Elf_Addr ooff; sym = NULL; - ooff = _dl_find_symbol("atexit", _dl_objects, &sym, + ooff = _dl_find_symbol("atexit", _dl_objects, &sym, NULL, SYM_SEARCH_ALL|SYM_NOWARNNOTFOUND|SYM_PLT, 0, dyn_obj); if (sym == NULL) _dl_printf("cannot find atexit, destructors will not be run!\n"); @@ -733,7 +733,7 @@ _dl_fixup_user_env(void) dummy_obj.load_name = "ld.so"; sym = NULL; - ooff = _dl_find_symbol("environ", _dl_objects, &sym, + ooff = _dl_find_symbol("environ", _dl_objects, &sym, NULL, SYM_SEARCH_ALL|SYM_NOWARNNOTFOUND|SYM_PLT, 0, &dummy_obj); if (sym != NULL) *((char ***)(sym->st_value + ooff)) = _dl_so_envp; |