Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/misc Add a support to build ubsan.c in libc



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

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

diffstat:

 lib/libc/misc/Makefile.inc |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 97def1427c06 -r c9b2b980d6c4 lib/libc/misc/Makefile.inc
--- a/lib/libc/misc/Makefile.inc        Fri Aug 03 04:24:41 2018 +0000
+++ b/lib/libc/misc/Makefile.inc        Fri Aug 03 04:29:35 2018 +0000
@@ -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
 



Home | Main Index | Thread Index | Old Index