This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/56393] SIGSEGV when -fsanitize=address and dynamic lib with global objects


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]