aboutsummaryrefslogtreecommitdiff
path: root/elf/dep4.c
blob: 9aad67d65927876052430ac52cfdd87347a1b3fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <unistd.h>

extern int dep3 (void);

static void
__attribute__ ((constructor))
init (void)
{
  write (1, "1", 1);
}

static void
__attribute__ ((destructor))
fini (void)
{
  write (1, "8", 1);
}

int
dep4 (void)
{
  return dep3 ();
}