diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2005-09-21 23:12:12 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2005-09-21 23:12:12 +0000 |
commit | 167e3760d86ba62a9da0d07fe138e4121997246b (patch) | |
tree | c594795ac03e0da8b00fba4bbe336ee85cb61b89 /libexec/ld.so/loader.c | |
parent | 63e90dafb93b6a3e64ad9102d8e9c4045a03ea3a (diff) |
Simplify the internal symbol finding API, with some cleanup, prep for
next step. ok kurt@
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 ef92ae03fb6..5fe58a3f1e3 100644 --- a/libexec/ld.so/loader.c +++ b/libexec/ld.so/loader.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loader.c,v 1.88 2005/09/19 02:31:04 drahn Exp $ */ +/* $OpenBSD: loader.c,v 1.89 2005/09/21 23:12:09 drahn Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -507,7 +507,7 @@ _dl_boot(const char **argv, char **envp, const long loff, long *dl_data) sym = NULL; ooff = _dl_find_symbol("atexit", &sym, SYM_SEARCH_ALL|SYM_NOWARNNOTFOUND|SYM_PLT, - 0, dyn_obj, &sobj); + NULL, dyn_obj, &sobj); if (sym == NULL) _dl_printf("cannot find atexit, destructors will not be run!\n"); else @@ -841,7 +841,7 @@ _dl_fixup_user_env(void) sym = NULL; ooff = _dl_find_symbol("environ", &sym, - SYM_SEARCH_ALL|SYM_NOWARNNOTFOUND|SYM_PLT, 0, &dummy_obj, NULL); + SYM_SEARCH_ALL|SYM_NOWARNNOTFOUND|SYM_PLT, NULL, &dummy_obj, NULL); if (sym != NULL) *((char ***)(sym->st_value + ooff)) = _dl_so_envp; } |