From a78c33a6c2d314c425e22aff4cc293b3eb546535 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Tue, 16 Jul 2024 17:35:31 +0900 Subject: [PATCH] Workaround app compat issue introduced by global ThinLTO optimization Several obfuscation libraries do not work with ThinLTO optimized bionic linker. Given we switched on the optimization late in the 24Q3 (V) release cycle, apply the local opt-out to avoid breaking the apps. This workaround will be removed in the following Android release. Test: manual Bug: 352456802 (cherry picked from https://android-review.googlesource.com/q/commit:aede6ea8d39868c7bf358ee8ee4208a6431d5f57) Merged-In: Ib3902b7985acce8f1c021c230b67aea821ee8dd2 Change-Id: Ib3902b7985acce8f1c021c230b67aea821ee8dd2 --- linker/Android.bp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linker/Android.bp b/linker/Android.bp index 78109e8f6..d8fdb1158 100644 --- a/linker/Android.bp +++ b/linker/Android.bp @@ -449,6 +449,10 @@ cc_binary { }, afdo: true, + + // FIXME: Workaround compat issue with obfuscation libraries. + // http://b/352456802 + lto_O0: true, } // ========================================================