summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeonid Lisovskiy <lly.dev@gmail.com>2016-01-26 20:12:58 +0300
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-01-31 17:41:21 +0100
commit2f389d46df6a9634589554708e2a7ea6ca901b86 (patch)
treecadff935def6f64bb936a2f2866d737d0f567456 /include
parentd6d36639c6a5dffbcdb77e947aafd1e858bbb714 (diff)
ldso: Use single rtld_flags interpretation through all the calls
Implement single rtld_flags interpretation through all the do_dlopen()/_dl_load_shared_library()/_dl_load_elf_shared_library() calls chain. This adds the ability to use the flags, passed to dlopen(), in all underlaying functions and implement rtld_flags inheritance. Saves a few bytes code. Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com> Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Diffstat (limited to 'include')
-rw-r--r--include/dlfcn.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dlfcn.h b/include/dlfcn.h
index 241ec5480..74825aaf0 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -26,6 +26,9 @@
/* Collect various system dependent definitions and declarations. */
#include <bits/dlfcn.h>
+/* Internally used flag. */
+#define __RTLD_SECURE 0x04000000 /* Apply additional security checks. */
+
#ifdef __USE_GNU
/* If the first argument of `dlsym' or `dlvsym' is set to RTLD_NEXT