diff options
author | Dmitriy Ivanov <dimitry@google.com> | 2014-10-03 17:52:44 -0700 |
---|---|---|
committer | Dmitriy Ivanov <dimitry@google.com> | 2014-10-21 13:52:49 -0700 |
commit | de01780f46e4e4540c7a1ea7d0302f460c880e9d (patch) | |
tree | d2267932c3cc08ea1e64adfcff91c92416e0040a /libc/include | |
parent | c712ceeec4c15da8488c5ce143fcc6b0a02d74f3 (diff) | |
download | bionic-de01780f46e4e4540c7a1ea7d0302f460c880e9d.zip bionic-de01780f46e4e4540c7a1ea7d0302f460c880e9d.tar.gz bionic-de01780f46e4e4540c7a1ea7d0302f460c880e9d.tar.bz2 |
Add file_offset parameter to android_extinfo
Bug: 17762003
(cherry picked from commit 07e5bc152d8a3ad4c50808bb86f3c0f2c5e2f514)
Change-Id: I72d527831384ff5dde013a4c8dfe639fbec165f5
Diffstat (limited to 'libc/include')
-rw-r--r-- | libc/include/android/dlext.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libc/include/android/dlext.h b/libc/include/android/dlext.h index 5c3a206..f81ec70 100644 --- a/libc/include/android/dlext.h +++ b/libc/include/android/dlext.h @@ -54,12 +54,19 @@ enum { */ ANDROID_DLEXT_USE_LIBRARY_FD = 0x10, + /* When opening library using library_fd read it starting with library_offset + * This flag is only valid when ANDROID_DLEXT_USE_LIBRARY_FD is set. + */ + + ANDROID_DLEXT_USE_LIBRARY_OFFSET = 0x20, + /* Mask of valid bits */ ANDROID_DLEXT_VALID_FLAG_BITS = ANDROID_DLEXT_RESERVED_ADDRESS | ANDROID_DLEXT_RESERVED_ADDRESS_HINT | ANDROID_DLEXT_WRITE_RELRO | ANDROID_DLEXT_USE_RELRO | - ANDROID_DLEXT_USE_LIBRARY_FD, + ANDROID_DLEXT_USE_LIBRARY_FD | + ANDROID_DLEXT_USE_LIBRARY_OFFSET, }; typedef struct { @@ -68,6 +75,7 @@ typedef struct { size_t reserved_size; int relro_fd; int library_fd; + off64_t library_offset; } android_dlextinfo; extern void* android_dlopen_ext(const char* filename, int flag, const android_dlextinfo* extinfo); |