a47edf2745
* ld-elf/data2.c: New file. * ld-elf/weakdef1.c: Likewise. * ld-elf/shared.exp: Add tests for libdata2 and weakdef1.
9 lines
107 B
C
9 lines
107 B
C
int foo = 0;
|
|
extern int foo_alias __attribute__ ((weak, alias ("foo")));
|
|
|
|
void
|
|
bar (void)
|
|
{
|
|
foo = -1;
|
|
}
|
|
|