[Bug sanitizer/55739] asan doesn't work on common symbols
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 19 13:50:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55739
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-19 13:49:35 UTC ---
That would look like too big hack.
Perhaps we could emit the common symbols as .bss .weak objects with padding,
and register as global a local alias to those symbols. Not sure if it would
have the right semantics of common symbols though (non-common definitions would
be strong symbols and thus would win over the common ones, or if only common
definitions are used, then one of them would win). Would bloat .bss of course,
and could do surprising things if one uses a weak non-common definition in one
CU and common (non-weak) symbol in another one.
More information about the Gcc-bugs
mailing list