about summary refs log tree commit diff
path: root/elf/unload7mod1.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/unload7mod1.c')
-rw-r--r--elf/unload7mod1.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/elf/unload7mod1.c b/elf/unload7mod1.c
new file mode 100644
index 0000000000..7435adce2c
--- /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;
+}