diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2004-08-11 19:14:57 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2004-08-11 19:14:57 +0000 |
commit | 790e0511d8b6629c85ac959d63eac9fe4c7caacc (patch) | |
tree | a773d637df2fb3bf669f7ff2c16983fc3344e417 /lib/libc | |
parent | fec58ae8c4bc4002d602ce897ee4f88767e23679 (diff) |
add dladdr() support and add some 'standard' dlsym() support.
ok millert miod pval, grumble deraadt
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/dlfcn/dlfcn_stubs.c | 10 | ||||
-rw-r--r-- | lib/libc/shlib_version | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/dlfcn/dlfcn_stubs.c b/lib/libc/dlfcn/dlfcn_stubs.c index 9891498b33d..430cd9d65fa 100644 --- a/lib/libc/dlfcn/dlfcn_stubs.c +++ b/lib/libc/dlfcn/dlfcn_stubs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dlfcn_stubs.c,v 1.7 2003/07/15 02:56:14 deraadt Exp $ */ +/* $OpenBSD: dlfcn_stubs.c,v 1.8 2004/08/11 19:14:56 drahn Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -39,6 +39,7 @@ int dlclose(void *handle) __attribute__((weak)); void *dlsym(void *handle, const char *name) __attribute__((weak)); int dlctl(void *handle, int command, void *data) __attribute__((weak)); const char * dlerror(void) __attribute__((weak)); +int dladdr(const void *addr, void *info) __attribute__((weak)); #include <stdio.h> @@ -74,3 +75,10 @@ dlerror(void) { return "Wrong dl symbols!\n"; } + +int +dladdr(const void *addr, void *info) +{ + printf("Wrong dl symbols!\n"); + return -1; +} diff --git a/lib/libc/shlib_version b/lib/libc/shlib_version index c3b79bfdab3..c945bee1e61 100644 --- a/lib/libc/shlib_version +++ b/lib/libc/shlib_version @@ -1,4 +1,4 @@ major=34 -minor=0 +minor=1 # note: If changes were made to include/thread_private.h or if system # calls were added/changed then libpthread must also be updated. |