diff options
Diffstat (limited to 'elf/nodlopen.c')
-rw-r--r-- | elf/nodlopen.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/elf/nodlopen.c b/elf/nodlopen.c new file mode 100644 index 0000000..642bdb3 --- /dev/null +++ b/elf/nodlopen.c @@ -0,0 +1,15 @@ +#include <dlfcn.h> +#include <stdio.h> + +int +main (void) +{ + if (dlopen ("nodlopenmod.so", RTLD_LAZY) != NULL) + { + puts ("opening \"nodlopenmod.so\" succeeded, FAIL"); + return 1; + } + + puts ("opening \"nodlopenmod.so\" failed, OK"); + return 0; +} |