From cd5f5a280eb8ddb9f992fc04565919d518c48830 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 29 Oct 2000 23:21:27 +0000 Subject: 2000-10-29 Roland McGrath * wire.c (map_extent): Pass second arg of RTLD_NOLOAD to dlopen. (RTLD_NOLOAD): Define macro to zero if undefined. --- libshouldbeinlibc/wire.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libshouldbeinlibc/wire.c') 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 -- cgit v1.2.3