aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr18720b.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-10-23 15:50:43 +1030
committerAlan Modra <amodra@gmail.com>2018-10-23 21:09:09 +1030
commit8e3152af14a91df65af8e922a0e8e77c60ed99ba (patch)
tree30d6863eb83bd16820cc7c5423e4450dfdca7660 /ld/testsuite/ld-elf/pr18720b.c
parent5a77b1b49f49cc5cfdb30727d8fc1bf456cad429 (diff)
downloadgdb-8e3152af14a91df65af8e922a0e8e77c60ed99ba.zip
gdb-8e3152af14a91df65af8e922a0e8e77c60ed99ba.tar.gz
gdb-8e3152af14a91df65af8e922a0e8e77c60ed99ba.tar.bz2
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.
Diffstat (limited to 'ld/testsuite/ld-elf/pr18720b.c')
-rw-r--r--ld/testsuite/ld-elf/pr18720b.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr18720b.c b/ld/testsuite/ld-elf/pr18720b.c
index 6a2975d..3644e5d 100644
--- a/ld/testsuite/ld-elf/pr18720b.c
+++ b/ld/testsuite/ld-elf/pr18720b.c
@@ -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");