This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Jan 2013 09:29:39 +0000
- Subject: [Bug sanitizer/55374] [asan] -static-libasan -static-libstdc++ doesn't work
- Auto-submitted: auto-generated
- References: <bug-55374-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374
--- Comment #20 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-29 09:29:39 UTC ---
Ah, you're right. My patch is mostly to fix -static-libasan or even
non-static-libasan - to make sure it comes early and thus override what it
thinks it actually overrides. For -static or -static-libstdc++ to work, you'd
need --wrap=XXX ld options (and differently built libasan_static.a), but it'd
be a mess. dlsym can't work in that case.
We error for -static -fsanitize=address, we could similarly error for
-static-libstdc++ -fsanitize=address combination.