aboutsummaryrefslogtreecommitdiff
path: root/include/dlfcn.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2009-03-30 08:47:28 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2009-03-30 08:47:28 +0000
commit2b0b4ee3592d5074ee6391bda886bdc48d168c5a (patch)
tree7fa11a9c6f5eb076d989897ba5ab3e64c0101750 /include/dlfcn.h
parentdec9af5a2bd1a4e4d9796715772cb6b3b8ad0372 (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.h1
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().