7a3681e5b6c39bc2b3b62031ca5941dbf7bc4e63 |
|
25-Apr-2017 |
Christopher Ferris <cferris@google.com> |
Move libc_log code into libasync_safe. This library is used by a number of different libraries in the system. Make it easy for platform libraries to use this library and create an actual exported include file. Change the names of the functions to reflect the new name of the library. Run clang_format on the async_safe_log.cpp file since the formatting is all over the place. Bug: 31919199 Test: Compiled for angler/bullhead, and booted. Test: Ran bionic unit tests. Test: Ran the malloc debug tests. Change-Id: I8071bf690c17b0ea3bc8dc5749cdd5b6ad58478a
|
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
|
30a36273ab761fb07892f7816b4873b6c48a0cea |
|
23-Feb-2017 |
Elliott Hughes <enh@google.com> |
Cope with argv[0] being null in the dynamic linker. Somewhat unsurprisingly, very few commands are happy to be run like this, in particular multiplexed commands like toybox. But that's no reason for the linker to get in the way too. Bug: http://b/33276926 Test: new test Change-Id: I6dd71ea0183f4da83571039c2198ebb6ed38520e
|
fbe54c4fe8c35294d60efbe0d1d6466211d4dc40 |
|
17-Feb-2017 |
Dimitry Ivanov <dimitry@google.com> |
Fix debug.ld for apps with long names and services 1. There is no longer limit on property names - remove the trimming the name of the property. 2. Make debug.ld work for processes with names ending with ":something" This is naming convention for services: https://developer.android.com/guide/components/services.html Bug: http://b/35338922 Bug: http://b/33926793 Test: manual - set ld.debug.app property for the app Test: from http://b/35338922 and see that it works Test: for the service as well. Change-Id: Ic7c6d4edce4a5a22f144496d5c0a3e458217c6e4
|
cf00d86935b8cc3d64909aa153270bb9f2d97beb |
|
14-Dec-2016 |
Dimitry Ivanov <dimitry@google.com> |
Add a way to track all dlsym calls (contd.) The followup for 4742abdcb52f16120016a5005c466230d4c46341 Changes in this file got lost in the process of cherry-picking the change across repositories. Bug: http://b/29458203 Test: flash, set debug.ld.all to dlsym and check if there are messages in logcat Change-Id: I4613908e46e75c5d9ec66396767f10fc6d3e9777
|
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*
|
f857211675dcfe7abd311e4a7bef6d1685fb4a93 |
|
13-Jul-2016 |
Dimitry Ivanov <dimitry@google.com> |
Use trivial types to avoid calls to new for globals To avoid initialization ordering problem avoid constructing non-trivial global objects for linker_logger. This patch also adds explicit check for bloc_size_ on alloc Change-Id: I2cb3b13a10b7fac1f52a20038af77266d3e1da96
|
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
|