Fixes: R10:7bc797e3f380 ("Add build system support for ASAN+UBSAN instrumentation")
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
They get built automatically when compiling with Clang - there's no option that needs to be turned on for them. My intent with this statement was to report that the option doesn't work if using GCC (via external toolchain). Any suggestion to make that more clear?
The generated src.conf.5 has:
+.It Va WITH_ASAN +Build the base system with Address Sanitizer (ASan) to detect +memory corruption bugs such as buffer overflows or use-after-free. +Requires Clang as base system compiler. +When set, it enforces these options: +.Pp +.Bl -item -compact +.It +.Va WITH_LLVM_BINUTILS +.It +.Va WITH_LLVM_CXXFILT +.El
Comment Actions
Sure, but they're only built for a limited number of architectures.
Ah yes, good point. Maybe "Requires that Clang be used as the base system compiler and that the runtime support library is available."