about summary refs log tree commit diff
path: root/elf/tst-audit9.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-audit9.c')
-rw-r--r--elf/tst-audit9.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/elf/tst-audit9.c b/elf/tst-audit9.c
new file mode 100644
index 0000000000..0982d8b716
--- /dev/null
+++ b/elf/tst-audit9.c
@@ -0,0 +1,8 @@
+#include <dlfcn.h>
+
+int main(void)
+{
+  void *h = dlopen("$ORIGIN/tst-auditmod9b.so", RTLD_LAZY);
+  int (*fp)(void) = dlsym(h, "f");
+  return fp() - 1;
+}