diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-11-02 22:26:02 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-11-02 22:26:02 +0000 |
commit | e254df14d58746e1e09dca15f43e8a88c5c5218b (patch) | |
tree | c5ac1ab7b84d497d957f269a93d0eeb305854669 /elf/dl-open.c | |
parent | e3e35cfc95cbfdc7829a5717af244d978d309f42 (diff) | |
download | glibc-e254df14d58746e1e09dca15f43e8a88c5c5218b.tar glibc-e254df14d58746e1e09dca15f43e8a88c5c5218b.tar.gz glibc-e254df14d58746e1e09dca15f43e8a88c5c5218b.tar.bz2 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/dl-open.c')
-rw-r--r-- | elf/dl-open.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/dl-open.c b/elf/dl-open.c index 9bbbee80f7..8cf1084a94 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -154,6 +154,10 @@ _dl_open (const char *file, int mode) char *errstring; int errcode; + if ((mode & RTLD_BINDING_MASK) == 0) + /* One of the flags must be set. */ + _dl_signal_error (EINVAL, file, _("invalid mode for dlopen()")); + /* Make sure we are alone. */ __libc_lock_lock (_dl_load_lock); |