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.