allocator: Disable PartitionAlloc memory tagging on non-glibc

Memory tagging depends on ifunc which is glibc-specific.
This commit is contained in:
klzgrad 2023-08-05 23:35:21 +08:00
parent eeb4eff136
commit 6a0302e822

View File

@ -152,7 +152,8 @@ static_assert(sizeof(void*) != 8, "");
#define PA_CONFIG_HAS_MEMORY_TAGGING() \
(defined(ARCH_CPU_ARM64) && defined(__clang__) && \
(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID)))
(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID))) && \
defined(LIBC_GLIBC)
#if PA_CONFIG(HAS_MEMORY_TAGGING)
static_assert(sizeof(void*) == 8);