Module Name: src
Committed By: kamil
Date: Fri Aug 3 02:29:35 UTC 2018
Modified Files:
src/lib/libc: Makefile
Log Message:
Disable sanitization of -fsanitize=function in libc
Generated code for the checks (in at least libunwind) depends on the C++
runtime feature of RTTI.
Pass -fno-sanitize=function to LIBCSANITIZERFLAGS.
To generate a diff of this commit:
cvs rdiff -u -r1.170 -r1.171 src/lib/libc/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/Makefile
diff -u src/lib/libc/Makefile:1.170 src/lib/libc/Makefile:1.171
--- src/lib/libc/Makefile:1.170 Sat Mar 31 14:24:54 2018
+++ src/lib/libc/Makefile Fri Aug 3 02:29:35 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.170 2018/03/31 14:24:54 kamil Exp $
+# $NetBSD: Makefile,v 1.171 2018/08/03 02:29:35 kamil Exp $
# @(#)Makefile 8.2 (Berkeley) 2/3/94
#
# All library objects contain sccsid strings by default; they may be
@@ -17,6 +17,8 @@
# The Hesiod functions are always in libc. To choose that getpwent() and friends
# actually call the Hesiod functions, put -DHESIOD on the CPPFLAGS line below.
+LIBCSANITIZERFLAGS+= -fno-sanitize=function # generated code depends on RTTI
+
.include "Makefile.inc"
LIB= c