about summary refs log tree commit diff
path: root/elf/dlopen.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-11-02 22:26:02 +0000
committerUlrich Drepper <drepper@redhat.com>1998-11-02 22:26:02 +0000
commite254df14d58746e1e09dca15f43e8a88c5c5218b (patch)
treec5ac1ab7b84d497d957f269a93d0eeb305854669 /elf/dlopen.c
parente3e35cfc95cbfdc7829a5717af244d978d309f42 (diff)
downloadglibc-e254df14d58746e1e09dca15f43e8a88c5c5218b.tar.gz
glibc-e254df14d58746e1e09dca15f43e8a88c5c5218b.tar.xz
glibc-e254df14d58746e1e09dca15f43e8a88c5c5218b.zip
Update.
	* elf/Makefile (libdl-routines): Add dlopenold.
	* elf/Versions [libdl, GLIBC_2.1]: Add dlopen.
	* elf/dl-open.c (_dl_open): Check whether RTLD_LAZY or RTLD_GLOBAL
	is set and bounce otherwise.
	* elf/dlopen.c: Rename function to __dlopen_check and make version
	named dlopen.
	* elf/dlopenold.c: New file.

1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
Diffstat (limited to 'elf/dlopen.c')
-rw-r--r--elf/dlopen.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/elf/dlopen.c b/elf/dlopen.c
index d616e489f2..496fc7d386 100644
--- a/elf/dlopen.c
+++ b/elf/dlopen.c
@@ -41,7 +41,7 @@ dlopen_doit (void *a)
 
 
 void *
-dlopen (const char *file, int mode)
+__dlopen_check (const char *file, int mode)
 {
   struct dlopen_args args;
   args.file = file;
@@ -49,3 +49,8 @@ dlopen (const char *file, int mode)
 
   return _dlerror_run (dlopen_doit, &args) ? NULL : args.new;
 }
+#if defined PIC && defined DO_VERSIONING
+default_symbol_version (__dlopen_check, dlopen, GLIBC_2.1);
+#else
+weak_alias (__dlopen_check, dlopen)
+#endif