CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/10/20 11:38:36
Modified files:
gnu/llvm/clang/lib/Driver/ToolChains: OpenBSD.cpp
Log message:
Teach clang to emit an error when enabling UBSan with execute-only.
UBSan and execute-only are mutually exclusive as -fsanitize=function
implied by UBSan sanitizes indirect function calls in which a
destination is only considered valid if preceded by a well known
sequence (0xc105cafe). This of course requires being able to read the
text segment, making it incompatible with execute-only.
Running UBSan on OpenBSD now requires the options:
-fsanitize=undefined -fsanitize-minimal-runtime Wl,--no-execute-only
ok sthen@, tb@