diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2015-10-12 02:48:53 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2015-10-12 02:55:28 +0200 |
commit | 5b791ec5e0bd6e05769bf9683d9e1f8b3344b9a5 (patch) | |
tree | ff628156cf473eee7ecb64079663e608ca53acc9 | |
parent | ignore orcus::sax::malformed_xml_error etc too (diff) | |
download | core-5b791ec5e0bd6e05769bf9683d9e1f8b3344b9a5.tar.gz core-5b791ec5e0bd6e05769bf9683d9e1f8b3344b9a5.zip |
android can only target sdk 22 - openssl triggers text relocation errors
scanelf -T android/source/obj/local/x86/liblo-native-code.so
TYPE TEXTRELS FILE
liblo-native-code.so: (memory/data?) [0x30E35B6] in (optimized out: previous OPENSSL_rdtsc) [0x30E35B0]
liblo-native-code.so: (memory/data?) [0x30E35D2] in (optimized out: previous OPENSSL_instrument_halt) [0x30E35D0]
liblo-native-code.so: (memory/data?) [0x30E3646] in (optimized out: previous OPENSSL_wipe_cpu) [0x30E3640]
liblo-native-code.so: (memory/data?) [0x30E494C] in (optimized out: previous sha1_block_data_order) [0x30E4940]
liblo-native-code.so: (memory/data?) [0x30E79BA] in (optimized out: previous sha512_block_data_order) [0x30E7980]
liblo-native-code.so: (memory/data?) [0x30EB7B2] in (optimized out: previous AES_encrypt) [0x30EB780]
liblo-native-code.so: (memory/data?) [0x30ECDF2] in (optimized out: previous AES_decrypt) [0x30ECDC0]
liblo-native-code.so: (memory/data?) [0x30ECE89] in (optimized out: previous AES_cbc_encrypt) [0x30ECE70]
ET_DYN android/source/obj/local/x86/liblo-native-code.so
with target level 22 it is only a warning:
W/linker:
/mnt/asec/org.documentfoundation.libreoffice-1/lib/x86/liblo-native-code.so has
text relocations. This is wasting memory and prevents security hardening.
Please fix.
with target level 23 it is java.lang.UnsatisfiedLinkError
Change-Id: Ia55c75c46a64854e46aab3329fef3e9b522a5ba2
-rw-r--r-- | android/source/build.gradle | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/android/source/build.gradle b/android/source/build.gradle index 8e2355c24642..3f476c22fd07 100644 --- a/android/source/build.gradle +++ b/android/source/build.gradle @@ -53,7 +53,10 @@ android { // defaults for Manifest defaultConfig { minSdkVersion 14 - targetSdkVersion 23 + // openssl on x86 makes the native-code.so contain text-relocations, + // 22 treats them as warnings, on 23 it is fatal error + // ToDo: fix openssl stuff to not block targeting 23 or later + targetSdkVersion 22 manifestPlaceholders = [installLocation: "preferExternal"] } buildTypes { |