This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Treat -ltsan similarly to -lasan during linking (PR sanitizer/55374)
- From: Dodji Seketeli <dodji at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Dodji Seketeli <dseketel at redhat dot com>, Konstantin Serebryany <konstantin dot s dot serebryany at gmail dot com>, Dmitry Vyukov <dvyukov at google dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 05 Feb 2013 16:48:14 +0100
- Subject: Re: [PATCH] Treat -ltsan similarly to -lasan during linking (PR sanitizer/55374)
- References: <20130205153918.GM4385@tucnak.redhat.com>
Jakub Jelinek <jakub@redhat.com> writes:
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2013-02-05 Jakub Jelinek <jakub@redhat.com>
>
> PR sanitizer/55374
> * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
> (STATIC_LIBTSAN_LIBS): Likewise.
> * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
> (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
> is defined, don't add anything else beyond that.
> (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
> (LINK_COMMAND_SPEC): Use them.
It looks OK for me. Thanks!
--
Dodji