Files
vasilito facf0c92e0 feat: track all source trees in git — full fork offline-first model
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.
2026-05-14 10:55:53 +01:00

40 lines
721 B
C

int
library_func1 (void)
{
return 2;
}
int global = 1;
#ifdef WITH_IFUNC
static int minus_one (void) { return -1; }
static int zero (void) { return 0; }
void * library_func2_ifunc (void) __asm__ ("library_func2");
void * library_func2_ifunc (void) { return global ? minus_one : zero ; }
__asm__(".type library_func2, %gnu_indirect_function");
extern int library_func2 (int);
extern __typeof (library_func2) library_func2 __asm__ ("__GI_library_func2");
__asm__(".global __GI_library_func2");
__asm__(".hidden __GI_library_func2");
__asm__("__GI_library_func2 = library_func2");
int
library_func (int x)
{
return library_func2 (x);
}
#else /* WITHOUT_IFUNC */
int
library_func2 (void)
{
return 3;
}
#endif