[Bug sanitizer/56393] SIGSEGV when -fsanitize=address and dynamic lib with global objects
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 8 06:56:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56393
--- Comment #24 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-08 06:56:30 UTC ---
"One way: put this function into the preinint array; this is automatically done
if you use -static-libasan;"
That is actually done whenever the binary is linked with -fsanitize=address, no
matter whether -static-libasan is used also or not.
Just
readelf -d binary | grep PREINIT
to verify.
More information about the Gcc-bugs
mailing list