Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/lib Asan needs bits and pieces of ubsan no...
details: https://anonhg.NetBSD.org/src/rev/9e2a4cb7b67b
branches: trunk
changeset: 359527:9e2a4cb7b67b
user: christos <christos%NetBSD.org@localhost>
date: Wed Feb 14 02:12:07 2018 +0000
description:
Asan needs bits and pieces of ubsan now; go figure.
diffstat:
external/gpl3/gcc/lib/Makefile.sanitizer | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 20b927cf2829 -r 9e2a4cb7b67b external/gpl3/gcc/lib/Makefile.sanitizer
--- a/external/gpl3/gcc/lib/Makefile.sanitizer Wed Feb 14 02:11:22 2018 +0000
+++ b/external/gpl3/gcc/lib/Makefile.sanitizer Wed Feb 14 02:12:07 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.sanitizer,v 1.3 2018/02/04 01:16:32 mrg Exp $
+# $NetBSD: Makefile.sanitizer,v 1.4 2018/02/14 02:12:07 christos Exp $
SANITIZER=${GCCDIST}/libsanitizer
.PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -9,7 +9,7 @@
interception_type_test.cc \
interception_win.cc
-SANITIZER_SRCS= \
+SANITIZER_SRCS+= \
sanitizer_allocator.cc \
sanitizer_common.cc \
sanitizer_common_libcdep.cc \
@@ -52,10 +52,17 @@
sanitizer_unwind_linux_libcdep.cc \
sanitizer_win.cc
+.PATH: ${SANITIZER}/ubsan
+UBSAN_SRCS+= \
+ubsan_diag.cc \
+ubsan_init.cc \
+ubsan_flags.cc \
+ubsan_value.cc
+
# The linux build does this to avoid preinit sections on shared libraries
CSHLIBFLAGS+= -DPIC
-SRCS+= ${INTERCEPTION_SRCS} ${SANITIZER_SRCS}
+SRCS+= ${INTERCEPTION_SRCS} ${SANITIZER_SRCS} ${UBSAN_SRCS}
CPPFLAGS+=-I${SANITIZER}/include -I${SANITIZER}
CPPFLAGS.sanitizer_netbsd.cc+=-I${GCCDIST}/gcc/ginclude
CPPFLAGS+=-D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
Home |
Main Index |
Thread Index |
Old Index