diff --git a/genl/static-syms.c b/genl/static-syms.c index 1ed3a8a9..0bc80743 100644 --- a/genl/static-syms.c +++ b/genl/static-syms.c @@ -1,4 +1,12 @@ +/* + * This file creates a dummy version of dynamic loading + * for environments where dynamic linking + * is not used or available. + */ + #include +#include "dlfcn.h" + void *_dlsym(const char *sym) { #include "static-syms.h" diff --git a/include/dlfcn.h b/include/dlfcn.h index b0be5a0f..c54f8d8e 100644 --- a/include/dlfcn.h +++ b/include/dlfcn.h @@ -8,6 +8,7 @@ #else #define RTLD_LAZY 0 +#define RTLD_GLOBAL 1 #define _FAKE_DLFCN_HDL (void *)0xbeefcafe static inline void *dlopen(const char *file, int flag) diff --git a/ip/static-syms.c b/ip/static-syms.c index 1ed3a8a9..0bc80743 100644 --- a/ip/static-syms.c +++ b/ip/static-syms.c @@ -1,4 +1,12 @@ +/* + * This file creates a dummy version of dynamic loading + * for environments where dynamic linking + * is not used or available. + */ + #include +#include "dlfcn.h" + void *_dlsym(const char *sym) { #include "static-syms.h" diff --git a/tc/static-syms.c b/tc/static-syms.c index 1ed3a8a9..0bc80743 100644 --- a/tc/static-syms.c +++ b/tc/static-syms.c @@ -1,4 +1,12 @@ +/* + * This file creates a dummy version of dynamic loading + * for environments where dynamic linking + * is not used or available. + */ + #include +#include "dlfcn.h" + void *_dlsym(const char *sym) { #include "static-syms.h"