aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-gc/pr14265.c
blob: 6bb8f9aa16a0c95c75e2e4200e4b7d9b15b4aefb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
int foo0 __attribute__((used,section(".foo0.0")));
int foo1 __attribute__((used,section(".foo1.0")));
int foo2 __attribute__((used,section(".foo2.0")));

extern unsigned long    __foo0_start;
extern unsigned long    __foo0_end;

extern unsigned long    __foo1_start;
extern unsigned long    __foo1_end;

extern unsigned long    __foo2_start;
extern unsigned long    __foo2_end;

int
main (void)
{
  return ((__foo0_end - __foo0_start) -
	  (__foo1_end - __foo1_start) -
	  (__foo2_end - __foo2_start));
}