From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26975 invoked by alias); 18 Oct 2012 18:16:52 -0000 Received: (qmail 26590 invoked by uid 22791); 18 Oct 2012 18:16:50 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_LV X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Oct 2012 18:16:41 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9IIGfDK025046 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 18 Oct 2012 14:16:41 -0400 Received: from zalov.redhat.com (vpn1-5-50.ams2.redhat.com [10.36.5.50]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q9IIGcE6024549 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Oct 2012 14:16:39 -0400 Received: from zalov.cz (localhost [127.0.0.1]) by zalov.redhat.com (8.14.5/8.14.5) with ESMTP id q9IIGb12032113; Thu, 18 Oct 2012 20:16:37 +0200 Received: (from jakub@localhost) by zalov.cz (8.14.5/8.14.5/Submit) id q9IIGbAe032112; Thu, 18 Oct 2012 20:16:37 +0200 Date: Thu, 18 Oct 2012 18:28:00 -0000 From: Jakub Jelinek To: Wei Mi Cc: Andrew Pinski , gcc-patches@gcc.gnu.org, Diego Novillo , David Li Subject: Re: [asan] migrate runtime from llvm Message-ID: <20121018181636.GZ584@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20121016072730.GE584@tucnak.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg01737.txt.bz2 On Thu, Oct 18, 2012 at 09:46:36AM -0700, Wei Mi wrote: > --- gcc/gcc.c (revision 192567) > +++ gcc/gcc.c (working copy) > @@ -679,6 +679,7 @@ proper position among the other output f > %{fgnu-tm:%:include(libitm.spec)%(link_itm)}\ > %(mflib) " STACK_SPLIT_SPEC "\ > %{fprofile-arcs|fprofile-generate*|coverage:-lgcov}\ > + %{fasan:-lasan -lpthread -ldl}\ > %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}\ > %{!nostdlib:%{!nostartfiles:%E}} %{T*} }}}}}}" > #endif Sorry for not mentioning it earlier at once, but -lpthread -ldl shouldn't be there either, the -fasan compiled code makes no direct calls to -lpthread nor -ldl, just libasan. Jakub