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

kcc at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 20 14:50:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56393

--- Comment #10 from Kostya Serebryany <kcc at gcc dot gnu.org> 2013-02-20 14:49:20 UTC ---
(In reply to comment #9)
> .preinit_array is only processed in executables, so this only affects
> -static-libasan, 

Right. This is the only mode officially supported by clang on linux anyway.

> not linking it as shared library, and only when the program is
> linked with -fsanitize=address.  And, -Wl,-z,initfirst can't be really used on
> Linux, because glibc dynamic linker only supports exactly one initfirst shared
> library, which it assumes is libpthread.so.0.



More information about the Gcc-bugs mailing list