]> git.ipfire.org Git - thirdparty/glibc.git/blame - elf/tst-relsort1.c
elf: Refuse to dlopen PIE objects [BZ #24323]
[thirdparty/glibc.git] / elf / tst-relsort1.c
CommitLineData
6ee65ed6
UD
1#include <dlfcn.h>
2#include <stdio.h>
3
4
5static int
59910343 6do_test (void)
6ee65ed6
UD
7{
8 const char lib[] = "$ORIGIN/tst-relsort1mod1.so";
9 void *h = dlopen (lib, RTLD_NOW);
10 if (h == NULL)
11 {
12 puts (dlerror ());
13 return 1;
14 }
15 return 0;
16}
17
36fe25fd 18#include <support/test-driver.c>