summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-10-09 13:52:35 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-10-13 11:17:11 +0200
commit619f12ddc0f320df5335ac58bcdc9a316d62a253 (patch)
treecbc95db543973f3e06e83f3015896d806517e0cb /lib
parent11683abacfb98074f1287f2ed84eb07b70a62be8 (diff)
downloadbarebox-619f12ddc0f320df5335ac58bcdc9a316d62a253.tar.gz
barebox-619f12ddc0f320df5335ac58bcdc9a316d62a253.tar.xz
lib: ubsan: disable sanitization for UBSAN implementation
As done in Linux, the implementation of ubsan itself should not be instrumented by KASAN and stack protector. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20231009115239.2291016-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 2b577becc4..791080b2d1 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -89,6 +89,8 @@ obj-$(CONFIG_GENERIC_LIB_MULDI3) += muldi3.o
pbl-$(CONFIG_GENERIC_LIB_ASHLDI3) += ashldi3.o
UBSAN_SANITIZE_ubsan.o := n
+KASAN_SANITIZE_ubsan.o := n
+CFLAGS_ubsan.o := -fno-stack-protector
libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \
fdt_empty_tree.o