From 87837aace92ced7be739fb7f3c764bb405fb5b2e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 10 Feb 2002 22:40:17 +0000 Subject: Update. * elf/dl-deps.c (struct openaux_args): Add open_mode element. (openaux): Pass open_mode as new last argument to _dl_map_object. (_dl_map_object_deps): Add new argument open_mode. Initialize open_mode element of args variable with it. * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to _dl_map_object_deps. * elf/rtld.c (dl_main): Add zero as last parameter to _dl_map_object_deps call. * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps. * elf/nodlopen2.c: New file. * elf/nodlopenmod2.c: New file. * elf/Makefile: Add rules to build and run nodlopen2. * elf/tls-macros.hgg: ...here. New file. 2002-02-08 Richard Henderson --- elf/nodlopen2.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 elf/nodlopen2.c (limited to 'elf/nodlopen2.c') diff --git a/elf/nodlopen2.c b/elf/nodlopen2.c new file mode 100644 index 0000000000..a223f36834 --- /dev/null +++ b/elf/nodlopen2.c @@ -0,0 +1,15 @@ +#include +#include + +int +main (void) +{ + if (dlopen ("nodlopenmod2.so", RTLD_LAZY) != NULL) + { + puts ("opening \"nodlopenmod2.so\" succeeded, FAIL"); + return 1; + } + + puts ("opening \"nodlopenmod2.so\" failed, OK"); + return 0; +} -- cgit v1.2.3