Files
glibc/elf/testobj3.c
T

26 lines
307 B
C
Raw Normal View History

1999-01-20 00:34:52 +00:00
#include <dlfcn.h>
1999-01-20 18:32:29 +00:00
#include <stdlib.h>
1999-01-20 00:34:52 +00:00
1999-01-21 08:31:59 +00:00
extern int foo (int);
1999-01-16 17:09:04 +00:00
int
obj3func1 (int a __attribute__ ((unused)))
{
return 44;
}
int
obj3func2 (int a)
{
return foo (a) + 42;
}
1999-01-20 00:34:52 +00:00
int
preload (int a)
{
int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
if (fp != NULL)
return fp (a) + 10;
return 10;
}