mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
13 lines
190 B
C
13 lines
190 B
C
|
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;
|
||
|
}
|