diff options
author | Dimitry Ivanov <dimitry@google.com> | 2016-11-16 12:29:37 -0800 |
---|---|---|
committer | Dimitry Ivanov <dimitry@google.com> | 2016-11-16 18:43:06 -0800 |
commit | 12b918743d63351b62ca93924e27a4fea0e115df (patch) | |
tree | 314209b87db9cc963769cfce41c42ef7ee58d696 /android-changes-for-ndk-developers.md | |
parent | 60ba60dd25870fcc20bff19063dd68ba166f7592 (diff) |
Relax ELF header checks - warn for apps targeting pre-O
Bug: http://b/32581440
Test: bionic-unit-tests --gtest_filter=dl*:Dl*
Change-Id: I2fe356c67eb9665c671758117679a29b207219e4
Diffstat (limited to 'android-changes-for-ndk-developers.md')
-rw-r--r-- | android-changes-for-ndk-developers.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/android-changes-for-ndk-developers.md b/android-changes-for-ndk-developers.md index 069b004e7..8925926e9 100644 --- a/android-changes-for-ndk-developers.md +++ b/android-changes-for-ndk-developers.md @@ -221,3 +221,16 @@ $ readelf --program-headers -W libBadFlags.so | grep WE *Resolution*: we're aware of one middleware product that introduces these into your app. The middleware vendor is aware of the problem and has a fix available. + +## Invalid ELF header/section headers (AOSP master) + +Android loader now checks for invalid values in ELF header and section headers and fails +if they are invalid. + +*Example error* +dlopen failed: "/data/data/com.example.bad/lib.so" has unsupported e_shentsize: 0x0 (expected 0x28) + +*Resolution* +Do not use tools that produce invalid/malformed elf-files. Note that using them puts application +under high risk of being incompatible with future versions of Android. + |