From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51823 invoked by alias); 31 Mar 2015 06:20:02 -0000 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 Received: (qmail 51797 invoked by uid 89); 31 Mar 2015 06:20:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp-relay.CeBiTec.Uni-Bielefeld.DE Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 31 Mar 2015 06:20:00 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 2C5FF3E8; Tue, 31 Mar 2015 08:19:57 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id QY3C7vK-sDpE; Tue, 31 Mar 2015 08:19:55 +0200 (CEST) Received: from fuego.CeBiTec.Uni-Bielefeld.DE (p54879C12.dip0.t-ipconnect.de [84.135.156.18]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 259933E7; Tue, 31 Mar 2015 08:19:55 +0200 (CEST) From: Rainer Orth To: Jakub Jelinek Cc: "H.J. Lu" , Jack Howarth , GCC Patches , Uros Bizjak Subject: Re: PATCH] PR target/65612: Multiversioning doesn't work with DSO nor PIE References: <20150330022527.GA4148@gmail.com> <20150331053855.GB2121@tucnak.redhat.com> Date: Tue, 31 Mar 2015 06:20:00 -0000 In-Reply-To: <20150331053855.GB2121@tucnak.redhat.com> (Jakub Jelinek's message of "Tue, 31 Mar 2015 07:38:55 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg01611.txt.bz2 Jakub Jelinek writes: >> @@ -424,3 +424,8 @@ __cpu_indicator_init (void) >> >> return 0; >> } >> + >> +#if defined SHARED && !defined _WIN32 >> +__asm__ (".symver __cpu_indicator_init, __cpu_indicator_init@GCC_4.8.0"); >> +__asm__ (".symver __cpu_model, __cpu_model@GCC_4.8.0"); >> +#endif > > Will this work on Solaris? > I'd say you at least want to also guard with some configure check if > .symver is supported by assembler. This will never work on Solaris: even if the assembler supports .symver, ld.so.1 never will. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University