In the Clang document on address sanitizer, under limitations (https://clang.llvm.org/docs/AddressSanitizer.html#limitations), the last bullet reads "Static linking of executables is not supported". That seems to contradict with my understanding that linking an executable with Clang using -fsanitize=address would make the executable statically links in the ASAN runtime library. What am I missing? Thanks.
The documentation is trying to say that static binaries (i.e., those built with the -static option) are not supported when using AddressSanitizer. See also D55066.
In the Clang document on address sanitizer, under limitations (https://clang.llvm.org/docs/AddressSanitizer.html#limitations), the last bullet reads "Static linking of executables is not supported". That seems to contradict with my understanding that linking an executable with Clang using -fsanitize=address would make the executable statically links in the ASAN runtime library. What am I missing? Thanks.