about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-09 16:45:21 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-09 16:45:21 +0000
commitb511d8fc6b63fc7555c88bd4ab7001dd3d51c3d1 (patch)
treea3ef704aaab9188ca62412ea4754120ed852d6b7
parent8aa8fc7fd04778b9162648929a9805aba678502a (diff)
downloadglibc-b511d8fc6b63fc7555c88bd4ab7001dd3d51c3d1.tar.gz
glibc-b511d8fc6b63fc7555c88bd4ab7001dd3d51c3d1.tar.xz
glibc-b511d8fc6b63fc7555c88bd4ab7001dd3d51c3d1.zip
Update.
2000-06-09  Jes Sorensen  <jes@linuxcare.com>

	* elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
	the address of a symbol so function pointers are handled properly.
-rw-r--r--ChangeLog5
-rw-r--r--elf/dl-libc.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d87e9221a3..1ef00a8e21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-09  Jes Sorensen  <jes@linuxcare.com>
+
+	* elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
+	the address of a symbol so function pointers are handled properly.
+
 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
 
 	* sysdeps/i386/Dist: Add bp-asm.h.
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