aboutsummaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2019-12-10 18:37:45 -0800
committerPeter Collingbourne <pcc@google.com>2020-01-10 11:38:30 -0800
commite5ba28648f8ea79764e06c854af595595b7c9e8e (patch)
tree9768eea13c50adec8239f22c1c58fe2f81cf14b4 /Android.bp
parent11e1ae025f45e47d53f52a839ed659bc8f877fb8 (diff)
downloadbuild_soong-e5ba28648f8ea79764e06c854af595595b7c9e8e.tar.gz
build_soong-e5ba28648f8ea79764e06c854af595595b7c9e8e.tar.bz2
build_soong-e5ba28648f8ea79764e06c854af595595b7c9e8e.zip
build: Link the unwinder dynamically into platform and vendor binaries.
Instead of linking the unwinder statically into every binary, link it dynamically, by exporting the symbols from libc.so. This has a number of advantages: - Reduces image size (system.img size decreases by 1.7MB on walleye-userdebug, and 1.2MB on crosshatch-userdebug). - Allows us to easily change/upgrade the unwinder throughout the system, including vendor prebuilts. - Allows code outside of libc++ to define custom personality routines. Previously, personality routines would call the unwinder routines in the local binary, which would cause problems with unwinders with global state (such as the libgcc unwinder) if the copy of the unwinder used for unwinding (normally libc++'s copy) were different from the copy linked against the personality routine. Bug: 144430859 Change-Id: I3b2a4a3ee58c6777989f811e19a3aeb47c0945bd
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 9403b26f..45180c38 100644
--- a/Android.bp
+++ b/Android.bp
@@ -595,6 +595,7 @@ toolchain_library {
vendor_available: true,
recovery_available: true,
native_bridge_supported: true,
+ sdk_version: "current",
arch: {
arm: {