Kaydet (Commit) 5b791ec5 authored tarafından Christian Lohmaier's avatar Christian Lohmaier

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
üst 70049dbe
...@@ -53,7 +53,10 @@ android { ...@@ -53,7 +53,10 @@ android {
// defaults for Manifest // defaults for Manifest
defaultConfig { defaultConfig {
minSdkVersion 14 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"] manifestPlaceholders = [installLocation: "preferExternal"]
} }
buildTypes { buildTypes {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment