1 extern char bar[];
2 extern char size_of_bar asm ("bar@SIZE");
3 
4 char *bar_size_1 = &size_of_bar;
5 static char *bar_size_2 = &size_of_bar;
6 
7 char *
bar_size1(void)8 bar_size1 (void)
9 {
10   return bar_size_1;
11 }
12 
13 char *
bar_size2(void)14 bar_size2 (void)
15 {
16   return bar_size_2;
17 }
18 
19 extern char foo[];
20 extern char size_of_foo asm ("foo@SIZE");
21 
22 char *foo_size_1 = &size_of_foo;
23 static char *foo_size_2 = &size_of_foo;
24 
25 char *
foo_size1(void)26 foo_size1 (void)
27 {
28   return foo_size_1;
29 }
30 
31 char *
foo_size2(void)32 foo_size2 (void)
33 {
34   return foo_size_2;
35 }
36