From 186bb8d56984b3ba1a35b923589757fb1fbcc39c Mon Sep 17 00:00:00 2001 From: maade93791 <70593890+maade69@users.noreply.github.com> Date: Mon, 9 Sep 2024 23:58:08 +0300 Subject: [PATCH] android: switch to armv8-a+memtag target ARM architecture this is required for hardened_malloc to work on MTE-enabled devices (currently, 8th and 9th generation Pixels). As PVMFW only supports ARMv8 cores. ref: https://android.googlesource.com/platform/packages/modules/Virtualization/+/refs/tags/android-15.0.0_r1/pvmfw/platform.dts#100 --- Android.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Android.bp b/Android.bp index 0db6a04c..e753850f 100644 --- a/Android.bp +++ b/Android.bp @@ -74,7 +74,7 @@ cc_library { cflags: ["-DLABEL_MEMORY"], }, device_has_arm_mte: { - cflags: ["-DHAS_ARM_MTE", "-march=armv9-a+memtag"] + cflags: ["-DHAS_ARM_MTE", "-march=armv8-a+memtag"] }, }, apex_available: [