From 2f389d46df6a9634589554708e2a7ea6ca901b86 Mon Sep 17 00:00:00 2001
From: Leonid Lisovskiy <lly.dev@gmail.com>
Date: Tue, 26 Jan 2016 20:12:58 +0300
Subject: 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>
---
 include/dlfcn.h | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'include')

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
-- 
cgit v1.2.3