From 38071ef4e5fba07101527eb274d7a10734b9c834 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sat, 5 Aug 2023 23:35:21 +0800 Subject: [PATCH] allocator: Disable PartitionAlloc memory tagging on non-glibc Memory tagging depends on ifunc which is glibc-specific. --- .../src/partition_alloc/partition_alloc_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_config.h b/src/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_config.h index 6a4c4714a0..fdf7123378 100644 --- a/src/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_config.h +++ b/src/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_config.h @@ -162,7 +162,7 @@ static_assert(sizeof(void*) != 8, ""); #if defined(ARCH_CPU_ARM64) && defined(__clang__) && \ !defined(ADDRESS_SANITIZER) && \ - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID)) + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID)) && defined(LIBC_GLIBC) #define PA_CONFIG_HAS_MEMORY_TAGGING() 1 #else #define PA_CONFIG_HAS_MEMORY_TAGGING() 0