binutils-gdb/ld/testsuite/ld-elfweak/alias.c
Alan Modra 40363a913b weak alias test
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.
2017-12-01 17:23:56 +10:30

4 lines
151 B
C

int strongsym = 123;
extern int __attribute__ ((weak, alias ("strongsym"))) weaksym1;
extern int __attribute__ ((weak, alias ("strongsym"))) weaksym2;