[Bug other/55354] [asan] by default, the asan run-time should be linked statically, not dynamically

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 18 20:10:00 GMT 2012


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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-18 20:09:39 UTC ---
That would effectively require building libtsan as libtsan.so.0, libtsan.a
(both -fPIC built) and libtsan_pie.a (-fPIE built), where the gcc driver would
do:
%{static-libtsan:!shared:-ltsan_pie;:-ltsan} or so.  Or there could be even
libtsan_nonpic.a for !shared:!pie, of course everything would need to be done
only given appropriate benchmarks of real-world programs.



More information about the Gcc-bugs mailing list