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

void
foo2 (void)
{
  printf ("MAIN2\n");
}

__asm__ (".symver foo2,foo@@FOO2");
#if defined __powerpc64__ && defined _CALL_AIXDESC && !defined _CALL_LINUX
__asm__ (".symver .foo2,.foo@@FOO2");
#endif

void
foo1 (void)
{
  printf ("MAIN1\n");
}

__asm__ (".symver foo1,foo@FOO1");
#if defined __powerpc64__ && defined _CALL_AIXDESC && !defined _CALL_LINUX
__asm__ (".symver .foo1,.foo@FOO1");
#endif