Files
glibc/elf/testobj2.c
T

33 lines
374 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>
#include <stdio.h>
1999-01-20 00:34:52 +00:00
2000-12-15 16:03:57 +00:00
#include "testobj.h"
1999-01-21 08:31:59 +00:00
1999-01-16 17:09:04 +00:00
int
obj2func1 (int a __attribute__ ((unused)))
{
return 43;
}
int
obj2func2 (int a)
{
return obj1func1 (a) + 10;
}
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;
}
2005-03-03 16:00:35 +00:00
void
p (void)
{
puts ("hello world");
}