Add "hwaddress" sanitizer.
This is a new sanitizer similar to ASan, but with a few differences from the build system perspective: * Only runs on AArch64. * Supports static binaries. * Bionic itself will be built with HWASan. * Does not have any "if a library is sanitized than the binary must be, too" requirements unlike ASan. Even better, individual static libraries can be freely sanitized or not. We propagate "nosanitize" from binaries to static libraries anyway, because otherwise there is no good way to disable hwasan on a binary as a whole. Same a CFI, we export a list of sanitized static libraries to make. In fact, we export separate lists for vendor and regular libraries, because it is possible for one to be sanitized without the other (i.e. there can be mylib.hwasan.vendor w/o mylib.hwasan or vice versa). Bug: 112438058, 112709969 Test: manual, part of a bigger patch set Change-Id: Ie4fdeb522ac03cf9684526882e84dfee3807b6a7
Loading
Please register or sign in to comment