Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib Disable sanitizers for libm and librt
details: https://anonhg.NetBSD.org/src/rev/86029c822493
branches: trunk
changeset: 362491:86029c822493
user: kamil <kamil%NetBSD.org@localhost>
date: Wed Jun 13 08:19:36 2018 +0000
description:
Disable sanitizers for libm and librt
The sanitizers are designed to use pristine OS versions of these libraries,
install interceptors for public symbols in them and link with them in every
sanitized executable.
Having unmodified base libraries (c, m, rt, pthread) also makes the system
usable with programs linking with them and without sanitization, as there
are no fatal issues during the resolving of missing symbols.
The remaining libraries like libutil, libintl etc are prebuilt with
sanitization and all their users in the MKSANITIZER=yes distribution are
required to use the same sanitizer.
libc and libpthread are already marked with the NOSANITIZER flag.
diffstat:
lib/libm/Makefile | 4 +++-
lib/librt/Makefile | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 28b7080df321 -r 86029c822493 lib/libm/Makefile
--- a/lib/libm/Makefile Wed Jun 13 05:26:12 2018 +0000
+++ b/lib/libm/Makefile Wed Jun 13 08:19:36 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.203 2017/09/26 16:01:59 maya Exp $
+# $NetBSD: Makefile,v 1.204 2018/06/13 08:19:36 kamil Exp $
#
# @(#)Makefile 5.1beta 93/09/24
#
@@ -13,6 +13,8 @@
#
#
+NOSANITIZER= # defined
+
#
# There are two options in making libm at fdlibm compile time:
# _IEEE_LIBM --- IEEE libm; smaller, and somewhat faster
diff -r 28b7080df321 -r 86029c822493 lib/librt/Makefile
--- a/lib/librt/Makefile Wed Jun 13 05:26:12 2018 +0000
+++ b/lib/librt/Makefile Wed Jun 13 08:19:36 2018 +0000
@@ -1,6 +1,8 @@
-# $NetBSD: Makefile,v 1.20 2016/08/05 13:03:13 christos Exp $
+# $NetBSD: Makefile,v 1.21 2018/06/13 08:19:36 kamil Exp $
#
+NOSANITIZER= # defined
+
.include <bsd.own.mk>
WARNS?= 5
Home |
Main Index |
Thread Index |
Old Index