https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124170
Bug ID: 124170
Summary: Missing documentation entry for -static-libhwasan
Product: gcc
Version: 15.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: kartatz at amanoteam dot com
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
Target Milestone: ---
Looking at https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html, I see
-static-<library> documentation for almost all AddressSanitizer libraries
except libhwasan. At first, this made me think that statically linking against
it wasn’t supported for some reason. However, I then tried running "gcc
-fsanitize=hwaddress -static-libhwasan ..." and it worked without any issues.
So, is it supported?