From dbaedc87e9d048077385c3a07a5ffbde518e5d28 Mon Sep 17 00:00:00 2001 From: Alessio Balsini Date: Wed, 18 May 2022 18:09:16 +0100 Subject: [PATCH] AOSP: e2fsdroid: static import of libbase Fix a wrong mixed shared/static library inclusion that has been unveiled by a recent clang upgrade to clang-r450784e: the linker couldn't find the requested object reference and caused the tool to crash. libsnapshot_fuzzer_test was luckily catching this misbehaviour as it was crashing as well when trying to format a loop device as ext4. Bug: 230851331 Test: m && atest libsnapshot_fuzzer_test Signed-off-by: Alessio Balsini Change-Id: I20b7b1d66920eb8f767e49311f913564f14ee30e Fix AOSP commit: 83239ca87da0bbdb088be7f0d048472e837899c2 --- contrib/android/Android.bp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/android/Android.bp b/contrib/android/Android.bp index c33ebf4..189211b 100644 --- a/contrib/android/Android.bp +++ b/contrib/android/Android.bp @@ -46,12 +46,15 @@ cc_binary { }, }, android: { + static_libs: [ + "libbase", + ], shared_libs: [ "libext2fs", "libext2_com_err", "libext2_misc", "libcutils", - "libbase", + "liblog", "libselinux", "libcrypto", ], -- 1.8.3.1