Dynamic Linker
Summary
Enumerations |
|
---|---|
Anonymous Enum 25{
|
enum Bitfield definitions for android_dlextinfo::flags . |
Functions |
|
---|---|
android_dlopen_ext(const char *_Nullable __filename, int __flags, const android_dlextinfo *_Nullable __info)
|
void *_Nullable
Opens the given library.
|
Structs |
|
---|---|
android_dlextinfo |
Used to pass Android-specific arguments to android_dlopen_ext(). |
Enumerations
Anonymous Enum 25
Declared inandroid/dlext.h
Anonymous Enum 25
Bitfield definitions for android_dlextinfo::flags
.
Properties | |
---|---|
ANDROID_DLEXT_FORCE_LOAD
|
When set, do not use This flag allows forced loading of the library in the case when for some reason multiple ELF files share the same filename (because the already-loaded library has been removed and overwritten, for example). Note that if the library has the same |
ANDROID_DLEXT_RESERVED_ADDRESS
|
When set, the If the reserved region is not large enough, loading will fail. |
ANDROID_DLEXT_RESERVED_ADDRESS_HINT
|
Like |
ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE
|
Instructs dlopen() to apply This means that if the main library depends on one or more not-already-loaded libraries, they will be loaded consecutively into the region starting at Each library's GNU RELRO sections will be written out to This is mainly useful for the system WebView implementation. |
ANDROID_DLEXT_USE_LIBRARY_FD
|
Use The filename parameter is still used to identify the library. |
ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET
|
If opening a library using This is mainly useful for loading a library stored within another file (such as uncompressed inside a ZIP archive). This flag is only valid when |
ANDROID_DLEXT_USE_NAMESPACE
|
This flag used to load library in a different namespace. The namespace is specified in This flag is for internal use only (since there is no NDK API for namespaces). |
ANDROID_DLEXT_USE_RELRO
|
When set, compare the GNU RELRO section of the mapped library to This is mainly useful for the system WebView implementation. |
ANDROID_DLEXT_VALID_FLAG_BITS
|
Mask of valid bits. |
ANDROID_DLEXT_WRITE_RELRO
|
When set, write the GNU RELRO section of the mapped library to This implies This is mainly useful for the system WebView implementation. |
Functions
android_dlopen_ext
Declared inandroid/dlext.h
void *_Nullable android_dlopen_ext( const char *_Nullable __filename, int __flags, const android_dlextinfo *_Nullable __info )
Opens the given library.
The __filename
and __flags
arguments are the same as for dlopen(3), with the Android-specific flags supplied via the flags
member of __info
.