Page MenuHomeFreeBSD

D26903.diff
No OneTemporary

D26903.diff

Index: head/lib/libc/tests/ssp/Makefile
===================================================================
--- head/lib/libc/tests/ssp/Makefile
+++ head/lib/libc/tests/ssp/Makefile
@@ -6,7 +6,9 @@
WARNS?= 2
CFLAGS.h_raw+= -fstack-protector-all -Wstack-protector
-.if ${COMPILER_TYPE} == "clang"
+.if ${COMPILER_TYPE} == "clang" && ${CC} == "cc"
+# Only use -fsanitize=bounds when using the in-tree compiler. Otherwise
+# we may link to a sanitizer library targeted at a newer kernel/libc.
CFLAGS.h_raw+= -fsanitize=bounds
.elif ${COMPILER_TYPE} == "gcc"
CFLAGS.h_raw+= --param ssp-buffer-size=1

File Metadata

Mime Type
text/plain
Expires
Fri, Jun 26, 2:48 AM (9 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34338038
Default Alt Text
D26903.diff (604 B)

Event Timeline