]> git.ipfire.org Git - thirdparty/glibc.git/blob - elf/unload4mod4.c
elf: Refuse to dlopen PIE objects [BZ #24323]
[thirdparty/glibc.git] / elf / unload4mod4.c
1 #include <stdio.h>
2 #include <stdlib.h>
3
4 int
5 __attribute__((noinline))
6 baz (int x)
7 {
8 abort ();
9 }
10
11 int
12 bar (int x)
13 {
14 puts ("in bar");
15 return baz (x + 1) + 2;
16 }