From 88f2bcfe8ed359775eff661e862a6b5ab4e794b0 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Wed, 17 Jul 2024 08:45:32 +0200 Subject: [PATCH] sandbox: work around clang ASan __asan_register_elf_globals error https://github.com/llvm/llvm-project/pull/67745 Signed-off-by: Ahmad Fatoum --- arch/sandbox/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index db67329835..6d145aeaf5 100644 --- a/arch/sandbox/Makefile +++ b/arch/sandbox/Makefile @@ -55,8 +55,8 @@ SANDBOX_LIBS += $(shell $(PKG_CONFIG) libftdi1 --libs) endif ifeq ($(CONFIG_ASAN),y) -KBUILD_CPPFLAGS += -fsanitize=address -SANDBOX_LIBS += -fsanitize=address +KBUILD_CPPFLAGS += -fsanitize=address -fno-sanitize-address-globals-dead-stripping +SANDBOX_LIBS += -fsanitize=address -fno-sanitize-address-globals-dead-stripping endif ifeq ($(CONFIG_UBSAN),y)