Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-ifunc/ifunc-common-1b.c

13 lines
190 B
C
Raw Normal View History

2023-03-06 14:48:14 +01:00
void alt (void) { }
void foo (void);
void * foo_ifunc (void) __asm__ ("foo");
__asm__(".type foo, %gnu_indirect_function");
__asm__(".weak foo");
void *
foo_ifunc (void)
{
return alt;
}