Commit | Line | Data |
---|---|---|
bc9ad2e4 L |
1 | int foo __attribute__ ((section ("_data_foo"))) = 0; |
2 | extern int foo_alias __attribute__ ((weak, alias ("foo"))); | |
3 | extern char __start__data_foo; | |
07e7fdfd | 4 | __asm__ (".type __start__data_foo,%object"); |
bc9ad2e4 L |
5 | int x1 = 1; |
6 | int x2 = 2; | |
7 | ||
8 | char * | |
9 | bar () | |
10 | { | |
11 | foo = -1; | |
12 | return &__start__data_foo; | |
13 | } |