Address Sanitizer and static linking

Hi all. I’m looking for a bit of clarification from something in the ASAN docs.

The address sanitizer docs state:

Static linking of executables is not supported.

But what does that actually mean? Something is always statically linked into the excecutable, the ASAN runtime itself is statically linked - so what is it being statically linked that ASAN does not support? libc++?

Thanks!

That means built with -static. That means, it doesn’t use the dynamic linker (loader) to start the binary.

1 Like

Makes sense - thanks. Sorry if this seemed obvious!