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.
4 lines
151 B
C
4 lines
151 B
C
int strongsym = 123;
|
|
extern int __attribute__ ((weak, alias ("strongsym"))) weaksym1;
|
|
extern int __attribute__ ((weak, alias ("strongsym"))) weaksym2;
|