From e2a8b1fd19fb3a8ead2ba28ddba27be19fa978b5 Mon Sep 17 00:00:00 2001 From: Matt Fischer Date: Thu, 31 Dec 2009 12:17:40 -0600 Subject: Added support for dladdr() dladdr() is a GNU extension function, which allows the caller to retrieve symbol information for a specified memory address. It is useful for things like generating backtrace information at runtime. Change-Id: I3a1def1a6c9c666d93e1e97b7d260dfa5b9b79a9 --- libdl/libdl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libdl') diff --git a/libdl/libdl.c b/libdl/libdl.c index 7971942..b36af16 100644 --- a/libdl/libdl.c +++ b/libdl/libdl.c @@ -14,12 +14,14 @@ * limitations under the License. */ +#include /* These are stubs for functions that are actually defined * in the dynamic linker (dlfcn.c), and hijacked at runtime. */ void *dlopen(const char *filename, int flag) { return 0; } -char *dlerror(void) { return 0; } +const char *dlerror(void) { return 0; } void *dlsym(void *handle, const char *symbol) { return 0; } +int dladdr(void *addr, Dl_info *info) { return 0; } int dlclose(void *handle) { return 0; } #ifdef __arm__ -- cgit v1.1