9e27e58faa6ff08efbe85fc62943d483ecfed61a |
|
24-Mar-2017 |
Elliott Hughes <enh@google.com> |
Add support for disabling the greylist. Useful for testing whether apps have actually stopped using greylisted libraries even if they still have references to them in their apk to support old Android releases but also haven't bumped their targetSdkVersion yet. Since we already have two expensive __system_property_get calls and this would add a third, optimize two (but leave the third since it's not obviously amenable to optimization). None of this matters for user builds, but I don't want userdebug/eng to have distractingly different performance. (cherrypick of 7933bec2872aa1c3430149c7649726333c0ac9d8.) Bug: http://b/36106661 Test: ran "can you escape 5" with and without this property Change-Id: Id9a804695c1dca9b4be2ebd0e72f01817bb13cba
|
7933bec2872aa1c3430149c7649726333c0ac9d8 |
|
24-Mar-2017 |
Elliott Hughes <enh@google.com> |
Add support for disabling the greylist. Useful for testing whether apps have actually stopped using greylisted libraries even if they still have references to them in their apk to support old Android releases but also haven't bumped their targetSdkVersion yet. Since we already have two expensive __system_property_get calls and this would add a third, optimize two (but leave the third since it's not obviously amenable to optimization). None of this matters for user builds, but I don't want userdebug/eng to have distractingly different performance. Bug: http://b/36106661 Test: ran "can you escape 5" with and without this property Change-Id: Id9a804695c1dca9b4be2ebd0e72f01817bb13cba
|
5c4a58072fad88a2ab89cfe063dd217041491357 |
|
18-Mar-2017 |
Dimitry Ivanov <dimitry@google.com> |
Add systrace output for dlopen calls Bug: http://b/27195126 Test: manual: adb shell atrace -t 5 bionic and run bionic-unit-tests --gtest_filter=dl*:Dl* Change-Id: Ib2bad794e571b89bd1f52c9e0de642c2092e5c21
|
4742abdcb52f16120016a5005c466230d4c46341 |
|
13-Dec-2016 |
Dimitry Ivanov <dimitry@google.com> |
Add a way to track all dlsym calls Add dlsym option to debug.ld.all and debug.ld.app.<appname> which enables logging of dlsym calls. Bug: http://b/29458203 Test: flash, set debug.ld.all to dlsym and check if there are messages in logcat Change-Id: I9cb815a38b5b98aac9ebe3ac1540bcdedd2e8db0
|
554374693408cd7c74d0cae596fca7349661edea |
|
21-Jul-2016 |
Dimitry Ivanov <dimitry@google.com> |
Pass argc/argv/envp to dso constructors The glibc implementation of the loader passes argc/argv/envp to all elf constructors. This change makes bionic linker behave in the same way. Bug: http://b/30145768 Change-Id: I1c65c42aa5305a5b133c64b5748205bbde869e0e Test: run bionic-unit-tests --gtest_filter=dl*:Dl*
|
b996d60493a2e501655f23523b31fe34a63edd5c |
|
12-Jul-2016 |
Dimitry Ivanov <dimitry@google.com> |
linker: Enable debug logging via properties This patch lets developers tune logging of dlopen/dlerror with setting system property. Note that for security purposes this option is disabled on user build for non-debuggable apps. For starters there are 3 debug options: dlerror - enables logging of all dlerrors dlopen - traces dlopen calls To enable system-wide logging (works only for userdebug/eng builds) use debug.ld.all property. To enable logging for particular app use debug.ld.app.<appname> property. Example: Running "adb shell setprop debug.ld.all dlerror,dlopen" will log all dlerror message as well as trace all calls to dlopen. Bug: http://b/29458203 Change-Id: I2392c80a795509e16fe5689d0500d18b99772a64
|