Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160495711
D26903.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
604 B
Referenced Files
None
Subscribers
None
D26903.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D26903: Only use ASAN when using the in-tree compiler
Attached
Detach File
Event Timeline
Log In to Comment