mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
14 lines
269 B
C
14 lines
269 B
C
|
int foo __attribute__ ((section ("_data_foo"))) = 0;
|
||
|
extern int foo_alias __attribute__ ((weak, alias ("foo")));
|
||
|
extern char __start__data_foo;
|
||
|
asm (".type __start__data_foo,%object");
|
||
|
int x1 = 1;
|
||
|
int x2 = 2;
|
||
|
|
||
|
char *
|
||
|
bar ()
|
||
|
{
|
||
|
foo = -1;
|
||
|
return &__start__data_foo;
|
||
|
}
|