This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/56393] SIGSEGV when -fsanitize=address and dynamic lib with global objects
- From: "tetra2005 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 Oct 2013 17:45:31 +0000
- Subject: [Bug sanitizer/56393] SIGSEGV when -fsanitize=address and dynamic lib with global objects
- Auto-submitted: auto-generated
- References: <bug-56393-4 at http dot gcc dot gnu dot org/bugzilla/>
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