Module Name: src Committed By: kamil Date: Fri Aug 3 04:29:35 UTC 2018
Modified Files: src/lib/libc/misc: Makefile.inc Log Message: Add a support to build ubsan.c in libc Under the condition of MKLIBCSANITIZER==yes link ubsan.c into libc. This is a clean-room reimplementation from scratch of the Undefined Behavior runtime called micro-UBSan (or uBSan - user-UBSan). To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/lib/libc/misc/Makefile.inc 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/misc/Makefile.inc diff -u src/lib/libc/misc/Makefile.inc:1.2 src/lib/libc/misc/Makefile.inc:1.3 --- src/lib/libc/misc/Makefile.inc:1.2 Tue Jan 29 19:14:02 2013 +++ src/lib/libc/misc/Makefile.inc Fri Aug 3 04:29:35 2018 @@ -1,8 +1,13 @@ -# $NetBSD: Makefile.inc,v 1.2 2013/01/29 19:14:02 matt Exp $ +# $NetBSD: Makefile.inc,v 1.3 2018/08/03 04:29:35 kamil Exp $ # @(#)Makefile.inc 8.3 (Berkeley) 10/24/94 .PATH: ${ARCHDIR}/misc ${.CURDIR}/misc +# other sources shared with the kernel +.if ${MKLIBCSANITIZER:Uno} == "yes" +SRCS+= ubsan.c +.endif + # constructor SRCS+= initfini.c