+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
}
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");
{"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"}