* commit '1350ed3d5252ed2beb8eb06564660c2cc97747f9': Add RTLD_NOLOAD support and some related changes.
This commit is contained in:
@@ -50,15 +50,29 @@ extern void* dlsym(void* handle, const char* symbol);
|
||||
extern int dladdr(const void* addr, Dl_info *info);
|
||||
|
||||
enum {
|
||||
#if defined(__LP64__)
|
||||
RTLD_NOW = 2,
|
||||
#else
|
||||
RTLD_NOW = 0,
|
||||
#endif
|
||||
RTLD_LAZY = 1,
|
||||
|
||||
RTLD_LOCAL = 0,
|
||||
#if defined(__LP64__)
|
||||
RTLD_GLOBAL = 0x00100,
|
||||
#else
|
||||
RTLD_GLOBAL = 2,
|
||||
#endif
|
||||
RTLD_NOLOAD = 4,
|
||||
};
|
||||
|
||||
#if defined (__LP64__)
|
||||
#define RTLD_DEFAULT ((void*) 0)
|
||||
#define RTLD_NEXT ((void*) -1L)
|
||||
#else
|
||||
#define RTLD_DEFAULT ((void*) 0xffffffff)
|
||||
#define RTLD_NEXT ((void*) 0xfffffffe)
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user