mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 08:40: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);
|
||
|
}
|