summaryrefslogtreecommitdiffstats
path: root/include/dlfcn.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-03-30 08:47:28 +0000
committerkib <kib@FreeBSD.org>2009-03-30 08:47:28 +0000
commit566c4f31f122544715745d4e127eaf47249d194b (patch)
tree7fa11a9c6f5eb076d989897ba5ab3e64c0101750 /include/dlfcn.h
parent96b9a81fd8f883257674bf829243b5ee4b7e74df (diff)
downloadFreeBSD-src-566c4f31f122544715745d4e127eaf47249d194b.zip
FreeBSD-src-566c4f31f122544715745d4e127eaf47249d194b.tar.gz
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
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 38f21b2..9fac620 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().
OpenPOWER on IntegriCloud