diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2009-03-30 08:47:28 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2009-03-30 08:47:28 +0000 |
commit | 2b0b4ee3592d5074ee6391bda886bdc48d168c5a (patch) | |
tree | 7fa11a9c6f5eb076d989897ba5ab3e64c0101750 /include/dlfcn.h | |
parent | dec9af5a2bd1a4e4d9796715772cb6b3b8ad0372 (diff) |
Implement support for RTLD_NODELETE flag for dlopen() and -z nodelete
static linker option. Do it by incrementing reference count on the loaded
object and its dependencies.
Reviewed by: davidxu, kan
Notes
Notes:
svn path=/head/; revision=190543
Diffstat (limited to 'include/dlfcn.h')
-rw-r--r-- | include/dlfcn.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dlfcn.h b/include/dlfcn.h index 38f21b246812..9fac6204224b 100644 --- a/include/dlfcn.h +++ b/include/dlfcn.h @@ -47,6 +47,7 @@ #define RTLD_GLOBAL 0x100 /* Make symbols globally available. */ #define RTLD_LOCAL 0 /* Opposite of RTLD_GLOBAL, and the default. */ #define RTLD_TRACE 0x200 /* Trace loaded objects and exit. */ +#define RTLD_NODELETE 0x01000 /* Do not remove members. */ /* * Request arguments for dlinfo(). |