This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/55739] asan doesn't work on common symbols
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Dec 2012 13:26:34 +0000
- Subject: [Bug sanitizer/55739] asan doesn't work on common symbols
- Auto-submitted: auto-generated
- References: <bug-55739-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55739
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-19 13:26:34 UTC ---
That is not a bug, it can't. Asan needs to insert padding after it, but you
don't know if the symbol will be defined by the current CU, or some other, and
whether there will be padding inserted after it or not. Just use -fno-common
if the program doesn't assume common symbol behavior to instrument those.