mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
a47edf2745
* ld-elf/data2.c: New file. * ld-elf/weakdef1.c: Likewise. * ld-elf/shared.exp: Add tests for libdata2 and weakdef1.
10 lines
107 B
C
10 lines
107 B
C
int foo = 0;
|
|
extern int foo_alias __attribute__ ((weak, alias ("foo")));
|
|
|
|
void
|
|
bar (void)
|
|
{
|
|
foo = -1;
|
|
}
|
|
|