]> git.ipfire.org Git - thirdparty/glibc.git/blame - elf/dep3.c
elf: Rework exception handling in the dynamic loader [BZ #25486]
[thirdparty/glibc.git] / elf / dep3.c
CommitLineData
c0c2af07
UD
1#include <unistd.h>
2
1a511d31
AJ
3extern int dep3 (void);
4
c0c2af07
UD
5static void
6__attribute__ ((constructor))
7init (void)
8{
9 write (1, "0", 1);
10}
11
12static void
13__attribute__ ((destructor))
14fini (void)
15{
16 write (1, "9\n", 2);
17}
18
19int
20dep3 (void)
21{
22 return 42;
23}