Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F96042062
D31046.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
513 B
Referenced Files
None
Subscribers
None
D31046.diff
View Options
diff --git a/lib/libc/x86/sys/Makefile.inc b/lib/libc/x86/sys/Makefile.inc
--- a/lib/libc/x86/sys/Makefile.inc
+++ b/lib/libc/x86/sys/Makefile.inc
@@ -12,3 +12,11 @@
.if ${MACHINE_CPUARCH} == "amd64" && ${MK_HYPERV} != "no"
CFLAGS+= -DWANT_HYPERV
.endif
+# We can't use sanitizer instrumentation on ifuncs called during sanitizer
+# runtime startup.
+.if ${MK_ASAN} != "no"
+CFLAGS.__vdso_gettc.c+=-fno-sanitize=address
+.endif
+.if ${MK_UBSAN} != "no"
+CFLAGS.__vdso_gettc.c+=-fno-sanitize=undefined
+.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Sep 24, 11:23 AM (21 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12659224
Default Alt Text
D31046.diff (513 B)
Attached To
Mode
D31046: Don't instrument the rdtsc ifunc when building with ASAN/UBSAN
Attached
Detach File
Event Timeline
Log In to Comment