summaryrefslogtreecommitdiffstats
path: root/linker/linker.h
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2014-02-06 14:34:21 +0000
committerTorne (Richard Coles) <torne@google.com>2014-04-17 13:50:55 +0100
commit012cb4583a5f8564059142bb1900ea3a31e7cfa9 (patch)
tree60d2a27a83766f6ad6d20b124feb0bc48a332593 /linker/linker.h
parent26c2bb84dd5cbd9ab43a5f0ebc2635bc3b64be3d (diff)
downloadbionic-012cb4583a5f8564059142bb1900ea3a31e7cfa9.zip
bionic-012cb4583a5f8564059142bb1900ea3a31e7cfa9.tar.gz
bionic-012cb4583a5f8564059142bb1900ea3a31e7cfa9.tar.bz2
Add android_dlopen_ext() interface to linker.
Add a function "android_dlopen_ext()", defined in <android/dlext.h>. This is an extended version of dlopen() which takes a struct for passing additional parameters for Android-specific functionality. This will be used to support RELRO section sharing between separate processes. Bug: 13005501 Change-Id: I9c99b2f2a02ee329dedaeba09ef3a1113b17b2d6
Diffstat (limited to 'linker/linker.h')
-rw-r--r--linker/linker.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/linker/linker.h b/linker/linker.h
index b8d0587..93ab51d 100644
--- a/linker/linker.h
+++ b/linker/linker.h
@@ -32,6 +32,7 @@
#include <elf.h>
#include <link.h>
#include <unistd.h>
+#include <android/dlext.h>
#include "private/libc_logging.h"
@@ -192,7 +193,7 @@ extern soinfo libdl_info;
void do_android_get_LD_LIBRARY_PATH(char*, size_t);
void do_android_update_LD_LIBRARY_PATH(const char* ld_library_path);
-soinfo* do_dlopen(const char* name, int flags);
+soinfo* do_dlopen(const char* name, int flags, const android_dlextinfo* extinfo);
int do_dlclose(soinfo* si);
ElfW(Sym)* dlsym_linear_lookup(const char* name, soinfo** found, soinfo* start);