0c52a746f7
* ld-elfweak/bar.c: Updated. * ld-elfweak/bar1a.c: Likewise. * ld-elfweak/main.c: Likewise. * ld-elfweak/main1.c: Likewise. * ld-elfweak/elfweak.exp: Likewise. * ld-elfweak/weakdata.dsym: Updated.
20 lines
165 B
C
20 lines
165 B
C
#include <stdio.h>
|
|
|
|
#pragma weak foo
|
|
|
|
extern void foo ();
|
|
extern void foobar ();
|
|
|
|
void
|
|
foo ()
|
|
{
|
|
printf ("weak foo\n");
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
foobar ();
|
|
return 0;
|
|
}
|