diff options
Diffstat (limited to 'elf/unload7mod1.c')
-rw-r--r-- | elf/unload7mod1.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/elf/unload7mod1.c b/elf/unload7mod1.c new file mode 100644 index 0000000..7435adc --- /dev/null +++ b/elf/unload7mod1.c @@ -0,0 +1,11 @@ +#include <dlfcn.h> +#include <stdio.h> + +int +foo (int i) +{ + if (dlsym (RTLD_DEFAULT, "unload7_nonexistent_symbol") == NULL) + return 1; + puts ("dlsym returned non-NULL"); + return 0; +} |