mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-19 15:23:30 +08:00
40363a913b
This adds the test I was using when testing 60d67dc8
.
* testsuite/ld-elfweak/alias.c,
* testsuite/ld-elfweak/alias.dat,
* testsuite/ld-elfweak/aliasmain.c,
* testsuite/ld-elfweak/weakref1.c,
* testsuite/ld-elfweak/weakref2.c: New test.
* testsuite/ld-elfweak/elfweak.exp: Run it. Don't return on fails,
attempt other tests.
13 lines
194 B
C
13 lines
194 B
C
#include <stdio.h>
|
|
|
|
extern int *psym1, *psym2;
|
|
extern int strongsym;
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
printf ("value via psym1: %d, via psym2: %d, strong %d\n",
|
|
*psym1, *psym2, strongsym);
|
|
return 0;
|
|
}
|