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.