diff options
Diffstat (limited to 'elf/nodlopen2.c')
-rw-r--r-- | elf/nodlopen2.c | 15 |
1 files changed, 15 insertions, 0 deletions
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 <dlfcn.h> +#include <stdio.h> + +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; +} |