mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-28 15:51:07 +00:00
25 lines
242 B
C
25 lines
242 B
C
|
#include <dlfcn.h>
|
||
|
|
||
|
extern int bar (void);
|
||
|
|
||
|
void *h;
|
||
|
|
||
|
int
|
||
|
foo (void)
|
||
|
{
|
||
|
return 42 + bar ();
|
||
|
}
|
||
|
|
||
|
int
|
||
|
baz (void)
|
||
|
{
|
||
|
return -21;
|
||
|
}
|
||
|
|
||
|
void
|
||
|
__attribute__ ((__constructor__))
|
||
|
init (void)
|
||
|
{
|
||
|
h = dlopen ("constload3.so", RTLD_GLOBAL | RTLD_LAZY);
|
||
|
}
|