Skip to content

Commit

Permalink
sandbox: work around clang ASan __asan_register_elf_globals error
Browse files Browse the repository at this point in the history
llvm/llvm-project#67745

Signed-off-by: Ahmad Fatoum <[email protected]>
  • Loading branch information
a3f committed Jul 17, 2024
1 parent e703ac7 commit 88f2bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/sandbox/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 88f2bcf

Please sign in to comment.