HomeFreeBSD

Add build system support for ASAN+UBSAN instrumentation

Description

Add build system support for ASAN+UBSAN instrumentation

This adds two new options WITH_ASAN/WITH_UBSAN that can be set to
enable instrumentation of all binaries with AddressSanitizer and/or
UndefinedBehaviourSanitizer. This current patch is almost sufficient
to get a complete buildworld with sanitizer instrumentation but in
order to actually build and boot a system it depends on a few more
follow-up commits.

Reviewed By: brooks, kib, markj
Differential Revision: https://reviews.freebsd.org/D31043

Details

Provenance
arichardsonAuthored on Aug 2 2021, 8:48 AM
Reviewer
brooks
Differential Revision
D31043: Add build system support for ASAN+UBSAN instrumentation
Parents
rG5f6c8ce2452d: tools/build: Don't redefine open() for the linux bootstrap
Branches
Unknown
Tags
Unknown