Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-elf/pr18720b.c
2023-03-06 14:48:14 +01:00

20 lines
400 B
C

#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