ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
22 lines
250 B
C
22 lines
250 B
C
#include <stdio.h>
|
|
|
|
static int foo (int x) __attribute__ ((ifunc ("resolve_foo")));
|
|
|
|
static int foo_impl(int x)
|
|
{
|
|
return x;
|
|
}
|
|
|
|
static void *resolve_foo (void)
|
|
{
|
|
return (void *) foo_impl;
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
foo (0);
|
|
puts ("PASS");
|
|
return 0;
|
|
}
|