diff options
author | Roland McGrath <roland@gnu.org> | 2000-10-29 23:21:27 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2000-10-29 23:21:27 +0000 |
commit | cd5f5a280eb8ddb9f992fc04565919d518c48830 (patch) | |
tree | ca35168b4084ad8066ccc4bd79ee91221567e99e | |
parent | 1e37d9739eb37d915b6b08e3cba1a3c7707efc5b (diff) |
2000-10-29 Roland McGrath <roland@redhat.sf.frob.com>
* wire.c (map_extent): Pass second arg of RTLD_NOLOAD to dlopen.
(RTLD_NOLOAD): Define macro to zero if undefined.
-rw-r--r-- | libshouldbeinlibc/wire.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libshouldbeinlibc/wire.c b/libshouldbeinlibc/wire.c index 7ea49090..85cb324a 100644 --- a/libshouldbeinlibc/wire.c +++ b/libshouldbeinlibc/wire.c @@ -29,6 +29,9 @@ #pragma weak dlclose #pragma weak dlerror #pragma weak dlsym +#ifndef RTLD_NOLOAD +#define RTLD_NOLOAD 0 +#endif /* Find the list of shared objects */ static struct link_map * @@ -54,7 +57,7 @@ static Elf32_Addr map_extent (struct link_map *map) { /* In fact, LIB == MAP, but doing it this way makes it entirely kosher. */ - void *lib = dlopen (map->l_name); + void *lib = dlopen (map->l_name, RTLD_NOLOAD); if (lib == 0) error (2, 0, "cannot dlopen %s: %s", map->l_name, dlerror ()); else |