Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc Disable sanitization of -fsanitize=function in libc



details:   https://anonhg.NetBSD.org/src/rev/7725ca3707c9
branches:  trunk
changeset: 365154:7725ca3707c9
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Aug 03 02:29:35 2018 +0000

description:
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.

diffstat:

 lib/libc/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r ffe5ed44a21d -r 7725ca3707c9 lib/libc/Makefile
--- a/lib/libc/Makefile Fri Aug 03 02:26:00 2018 +0000
+++ b/lib/libc/Makefile Fri Aug 03 02:29:35 2018 +0000
@@ -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



Home | Main Index | Thread Index | Old Index