Mylib.So Has Text Relocations. This Is Wasting Memory and Is a Security Risk. Please Fix

mylib.so has text relocations. This is wasting memory and is a security risk. Please fix

This would appear to be a result of two ndk-gcc bugs mentioned at https://code.google.com/p/android/issues/detail?id=23203

and stated there to have been fixed as of ndk-r8c.

It would appear that the check for libraries with the issue has been added only recently.

Note: please do not edit this post to hide the link URL. It is explicit because the destination is what makes it authoritative.

Further Note Changing NDK versions is only a fix when the warning is due to the code of your application. It will have no effect if the warning is instead on a system component such as libdvm - that can only be fixed by a system update.

Security warning on libdvm.so noticed while deploying Android apps

Were this your own jni library or native executable the solution would be to update to ndk r8c or later as discussed at:

mylib.so has text relocations. This is wasting memory and is a security risk. Please fix

in order to obtain a fix for https://code.google.com/p/android/issues/detail?id=23203

However as this appears to be in a platform library (specifically the Dalvik VM itself) rather than something you built, there is not much of anything you can do. You'll likely see this on every Activity process (or at least runtime) startup, until your device manufacturer does an update.

It is only a warning though.

Error while uploading dependencies.apk : WARNING: linker: libhoudini.so has text relocations

After some research, I found out that gradle 2.3.0 plugin has issue with ARM translator which I installed in my Genymotion emulator. And libhoudini.so is a proprietary ARM translation layer of emulator. That's why my installation of apk through Android Studio was failed with emulator. So, emulators without GApps will work.



Related Topics



Leave a reply



Submit