alpha testsuite fixes

Fixes a couple of ERROR results due to .set difference on alpha.

	* testsuite/ld-elf/shared.exp: Don't build pr19073 test on alpha.
	* testsuite/ld-elf/pr18720b.c: Don't use .set on alpha.
This commit is contained in:
Alan Modra 2018-10-23 15:50:43 +10:30
parent 5a77b1b49f
commit 8e3152af14
3 changed files with 22 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2018-10-23 Alan Modra <amodra@gmail.com>
* testsuite/ld-elf/shared.exp: Don't build pr19073 test on alpha.
* testsuite/ld-elf/pr18720b.c: Don't use .set on alpha.
2018-10-20 Alan Modra <amodra@gmail.com>
* ldlang.c (lang_end): Don't error if no --entry or --undefined

View File

@ -7,7 +7,11 @@ foo (void)
}
asm (".symver foo,foo@FOO");
#ifdef __alpha__
asm ("foo_alias = foo");
#else
asm (".set foo_alias,foo");
#endif
asm (".global foo_alias");
#if defined __powerpc64__ && defined _CALL_AIXDESC && !defined _CALL_LINUX
asm (".symver .foo,.foo@FOO");

View File

@ -741,12 +741,19 @@ set build_tests {
{"Build libpr18458b.so"
"-shared -Wl,-z,now tmpdir/libpr18458a.so" "-fPIC"
{pr18458b.c} {} "libpr18458b.so"}
{"Build pr19073a.o"
"-r -nostdlib" ""
{pr19073.s} {} "pr19073a.o"}
{"Build libpr19073.so"
"-shared -Wl,--version-script=pr19073.map tmpdir/pr19073a.o" "-fPIC"
{dummy.c} {{readelf {--dyn-syms --wide} pr19073.rd}} "libpr19073.so"}
}
# pr19073.s uses .set, which has a different meaning on alpha.
if { ![istarget alpha-*-*] } {
append build_tests {
{"Build pr19073a.o"
"-r -nostdlib" ""
{pr19073.s} {} "pr19073a.o"}
{"Build libpr19073.so"
"-shared -Wl,--version-script=pr19073.map tmpdir/pr19073a.o" "-fPIC"
{dummy.c} {{readelf {--dyn-syms --wide} pr19073.rd}} "libpr19073.so"}
}
}
append build_tests {
{"Build pr21964-1a.so"
"-shared" "-fPIC"
{pr21964-1a.c} {} "pr21964-1a.so"}