From 012cb4583a5f8564059142bb1900ea3a31e7cfa9 Mon Sep 17 00:00:00 2001 From: "Torne (Richard Coles)" Date: Thu, 6 Feb 2014 14:34:21 +0000 Subject: Add android_dlopen_ext() interface to linker. Add a function "android_dlopen_ext()", defined in . 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 --- linker/linker.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linker/linker.h') 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 #include #include +#include #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); -- cgit v1.1