[Bug sanitizer/56393] SIGSEGV when -fsanitize=address and dynamic lib with global objects
tetra2005 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Oct 15 17:45:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56393
--- Comment #32 from Yuri Gribov <tetra2005 at gmail dot com> ---
(In reply to Evgeniy Stepanov from comment #30)
> Yes, but that must run before library constructors => .preinit_array.
> I'm not sure we want to add code like this to .preinit_array of all binaries
> that are NOT linked with AddressSanitizer ;)
Speculating on Pawel's suggestion: what if we add a marker symbol to
asan_preinit.o and then check it's presence (with dlsym) at the beginning of
__asan_init?
-Y
More information about the Gcc-bugs
mailing list