summaryrefslogtreecommitdiff
path: root/linker/linker_sdk_versions.cpp
AgeCommit message (Collapse)Author
2021-03-05Add some slack at the end of large allocations when target SDK level < S.Peter Collingbourne
This works around buggy applications that read a few bytes past the end of their allocation, which would otherwise cause a segfault with the concurrent Scudo change that aligns large allocations to the right. Because the implementation of android_set_application_target_sdk_version() lives in the linker, we need to introduce a hook so that libc is notified when the target SDK version changes. Bug: 181344545 Change-Id: Id4be6645b94fad3f64ae48afd16c0154f1de448f
2019-08-20Reland "fdsan: make fatal by default."Josh Gao
The two tests known to be failing (installd_dexopt_test and BpfMapTest) have been fixed, so let's try this again. This reverts commit 76351e3e3fbbd386c059251dbc6b1081a8f77088. Bug: http://b/137788030 Bug: http://b/139092341 Bug: http://b/139175951 Test: treehugger
2019-08-09Revert "fdsan: make fatal by default."Pete Gillin
This reverts commit 66b5e3ca1941a118bbb8ea41bfe98f9725ee8d5d. Reason for revert: Causes installd_dexopt_test to fail. Presumably there is an existing issue which this change is turning into a hard fail, so that needs to be fixed before this can be rolled forwards. See b/139092341. Bug: 139092341 Bug: 137788030 Change-Id: I1beccddff64c86541bc003b9b009f4046ec9cbf1
2019-08-07fdsan: make fatal by default.Josh Gao
Make fdsan fatal by default on native processes, and Java processes that target R or later. Bug: http://b/137788030 Test: manual Change-Id: I5900efc606fc0d47b69223574ad7dca89afe4eda
2018-11-13Move API levels from `uint32_t` to `int`.Elliott Hughes
(cherrypick of a6c71a09670ca636cca5cfea9d74b03a951e2b5e.) Bug: N/A Test: builds Change-Id: I9c414e30e3c4fe2a4e16a2fe4ce18eae85fe4844
2017-02-15Unify linker files under one license (BSD)Dimitry Ivanov
Historically we had part of the linker licensed under BSD and another part under Apache 2 license. This commit makes all the linker code licensed under BSD license. Test: m Change-Id: I11b8163ae75966b5768d3fe992679de376106515
2015-06-17Improve library lookup logicDmitriy Ivanov
Linker tries to open a library even if it can be found by soname. This only happens if the library was previously opened under different target sdk version. Bug: http://b/21876587 Bug: http://b/21153477 Bug: http://b/21171302 Bug: https://code.google.com/p/android/issues/detail?id=160921 Change-Id: I7dbbcc3b49933bffd89ca0af55371e1a1f2bf4c2
2015-06-17Revert "Improve library lookup logic"Dimitry Ivanov
This reverts commit ea4ef52fa46602a5853df0e5b1ddd71b194d54ce. Bug: http://b/21876587 Bug: http://b/21153477 Bug: http://b/21171302 Bug: https://code.google.com/p/android/issues/detail?id=160921 Change-Id: I23ddbd69294023c56c9cbabad29d26c8f736ab43
2015-06-16Improve library lookup logicDmitriy Ivanov
Linker tries to open a library even if it can be found by soname. This only happens if the library was previously opened under different target sdk version. Bug: http://b/21876587 Bug: http://b/21153477 Bug: http://b/21171302 Bug: https://code.google.com/p/android/issues/detail?id=160921 Change-Id: I769a04b6b1368a107d43f399297be14050338bbc
2015-06-02Backward compatibility for dlsym(RTLD_DEFAULT, ...)Dmitriy Ivanov
Do not skip RTLD_LOCAL libraries in dlsym(RTLD_DEFAULT, ...) if the library is opened by application with target api level <= 22 Bug: http://b/21565766 Bug: http://b/17512583 Change-Id: Ic45ed1e4f53e84cba9d74cab6b0049c0c7aa8423
2015-05-27Add functions to provide target sdk versionDmitriy Ivanov
Bug: http://b/21364029 Change-Id: I8648d1bff6c8fd6e7cd12da7f128e048b9f2829a (cherry picked from commit 79fd668bb4ddb22432eeda2ebd8d10359013d9a8)