From b511d8fc6b63fc7555c88bd4ab7001dd3d51c3d1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 9 Jun 2000 16:45:21 +0000 Subject: Update. 2000-06-09 Jes Sorensen * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain the address of a symbol so function pointers are handled properly. --- elf/dl-libc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf/dl-libc.c') diff --git a/elf/dl-libc.c b/elf/dl-libc.c index 07aae9c8f9..c95935ff75 100644 --- a/elf/dl-libc.c +++ b/elf/dl-libc.c @@ -111,7 +111,7 @@ __libc_dlsym (void *__map, const char *__name) args.name = __name; return (dlerror_run (do_dlsym, &args) ? NULL - : (void *) (args.loadbase + args.ref->st_value)); + : (void *) (DL_SYMBOL_ADDRESS (args.loadbase, args.ref))); } int -- cgit v1.2.3