aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr18720b.c
blob: 6b3222db86bbf28e209fd3b027f632b0be0df007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>

void
foo (void)
{
  printf ("MAIN\n");
}

__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");
__asm__ (".set .foo_alias,.foo");
__asm__ (".global .foo_alias");
#endif