From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20598 invoked by alias); 5 Sep 2011 17:22:28 -0000 Received: (qmail 20590 invoked by uid 22791); 5 Sep 2011 17:22:27 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-wy0-f175.google.com (HELO mail-wy0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Sep 2011 17:22:11 +0000 Received: by wyf19 with SMTP id 19so4371309wyf.20 for ; Mon, 05 Sep 2011 10:22:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.167.194 with SMTP id i44mr121937wel.33.1315243330556; Mon, 05 Sep 2011 10:22:10 -0700 (PDT) Received: by 10.216.82.149 with HTTP; Mon, 5 Sep 2011 10:22:10 -0700 (PDT) In-Reply-To: <20110905081004.GK27949@sunsite.ms.mff.cuni.cz> References: <20110905081004.GK27949@sunsite.ms.mff.cuni.cz> Date: Mon, 05 Sep 2011 17:22:00 -0000 Message-ID: Subject: Re: [PLUGIN] dlopen and RTLD_NOW From: Andrew Pinski To: Jakub Jelinek Cc: Richard Guenther , Romain Geissler , gcc@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg00025.txt.bz2 On Mon, Sep 5, 2011 at 1:10 AM, Jakub Jelinek wrote: > That said, relying on lazy binding is terribly bad design. In fact I was going to say why can't those symbols be marked as weak in your plugin? You don't even need to change the GCC headers, just have an extra header that does: #pargma weak Thanks, Andrew Pinski