ASan does not support statically linked binaries, but ASan runtime itself can
be statically linked into a target binary executable.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 25692 Build 25691: arc lint + arc unit
Event Timeline
Comment Actions
PTAL, it's a single line change, I just need someone to confirm that I'm not mistaken :)
Comment Actions
Sorry for the delay.
This is wrong, static linking is NOT supported.
You could be confusing it with static linking of asan runtime library to an executable - that is and has always been the default.
Comment Actions
Thanks, @eugenis! Should I change the message to something like "ASan runtime cannot be built with static linking."? Does it sound correct and perhaps less confusing?
Comment Actions
Thanks @eugenis for explaining the issue to me over chat. I've updated the CL and the description. I can abandon it though, if you find it useless.