aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/data2.c
blob: c137b7ce5dc95ecb69231dc8f1dfbe1b0ac71604 (plain)
1
2
3
4
5
6
7
8
9
int foo = 0;
extern int foo_alias __attribute__ ((weak, alias ("foo")));

void
bar (void)
{
  foo = -1;
}