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

source code of glibc/elf/dep2.c