1#include <unistd.h>
2
3extern int dep1 (void);
4extern int dep2 (void);
5extern int dep4 (void);
6
7static void
8__attribute__ ((constructor))
9init (void)
10{
11 write (1, "3", 1);
12}
13
14static void
15__attribute__ ((destructor))
16fini (void)
17{
18 write (1, "6", 1);
19}
20
21int
22dep1 (void)
23{
24 return dep4 () - dep2 ();
25}
26

source code of glibc/elf/dep1.c