glibc/elf/unload4mod4.c

19 lines
258 B
C
Raw Normal View History

2005-03-18 10:54:53 +00:00
#include <stdio.h>
#include <stdlib.h>
int
__attribute__((noinline))
/* Workaround for clang/lld failing to override this from a module. */
__attribute__((weak))
2005-03-18 10:54:53 +00:00
baz (int x)
{
abort ();
}
int
bar (int x)
{
puts ("in bar");
return baz (x + 1) + 2;
}