]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - elf/tst-audit9.c
elf: Refuse to dlopen PIE objects [BZ #24323]
[thirdparty/glibc.git] / elf / tst-audit9.c
index 0982d8b7161aa4178e9f188f3f9fce4ea57d9ef8..b9de1bf5a2de62fd28fa5c7b36562490212fb32f 100644 (file)
@@ -1,8 +1,11 @@
 #include <dlfcn.h>
 
-int main(void)
+static int
+do_test (void)
 {
   void *h = dlopen("$ORIGIN/tst-auditmod9b.so", RTLD_LAZY);
   int (*fp)(void) = dlsym(h, "f");
   return fp() - 1;
 }
+
+#include <support/test-driver.c>