summaryrefslogtreecommitdiff
path: root/android-changes-for-ndk-developers.md
diff options
context:
space:
mode:
authorDimitry Ivanov <dimitry@google.com>2016-11-16 12:29:37 -0800
committerDimitry Ivanov <dimitry@google.com>2016-11-16 18:43:06 -0800
commit12b918743d63351b62ca93924e27a4fea0e115df (patch)
tree314209b87db9cc963769cfce41c42ef7ee58d696 /android-changes-for-ndk-developers.md
parent60ba60dd25870fcc20bff19063dd68ba166f7592 (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.md13
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.
+