From patchwork Mon Aug 11 19:22:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 35214 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 41ACF20AEC for ; Mon, 11 Aug 2014 19:23:41 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lf10sf64057379pab.1 for ; Mon, 11 Aug 2014 12:23:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results; bh=v+l5iAjYfTaYYIj0j5swNNtplNewBUqcDKWM4JK+CsE=; b=cXhAsGDdgmjjZsaGmYBK6soVbuTR/NAcbgTVUvLpdcXywQ+1O+PbspnTfsN0pEUmEl IoyB7th+qAYQzybYFKSL85htODqy2OwJcTuwYLh3tjeS6niIIJL9zDD/VkWxGJoMJWIe W49dKMWIFBUME+/axAeI+z8zIIlGrFzQFLQ4xflqXm7IQ1ZP1LzX9K9cQNMD2BDVjT+0 LGI12sDIipo7VMgvxJVkKEVvBzC4k+yk17KenQhzqkHiFyQuL2DHJ0+Dk7weYwGBuE7r T4UndkUwRjv0aBxC5zKlSgpK1q62iq1PmKFXUbBKBQYMF5RGcQtabY2SgwQBNrXTYan8 KTsQ== X-Gm-Message-State: ALoCoQkC86WkOxbzqn4/gqbt2dcG90zqadmV8yUt5yqFdYmXZRWD078U3q4dL7DEzLSLX7nZ3Sin X-Received: by 10.66.161.7 with SMTP id xo7mr18576381pab.14.1407785020550; Mon, 11 Aug 2014 12:23:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.48 with SMTP id m45ls1571290qgd.18.gmail; Mon, 11 Aug 2014 12:23:40 -0700 (PDT) X-Received: by 10.220.182.1 with SMTP id ca1mr37950641vcb.21.1407785020445; Mon, 11 Aug 2014 12:23:40 -0700 (PDT) Received: from mail-vc0-x235.google.com (mail-vc0-x235.google.com [2607:f8b0:400c:c03::235]) by mx.google.com with ESMTPS id io2si6991558vcb.84.2014.08.11.12.23.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Aug 2014 12:23:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::235 as permitted sender) client-ip=2607:f8b0:400c:c03::235; Received: by mail-vc0-f181.google.com with SMTP id lf12so11930491vcb.40 for ; Mon, 11 Aug 2014 12:23:40 -0700 (PDT) X-Received: by 10.52.129.200 with SMTP id ny8mr438218vdb.27.1407785020352; Mon, 11 Aug 2014 12:23:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp189350vcb; Mon, 11 Aug 2014 12:23:39 -0700 (PDT) X-Received: by 10.70.103.132 with SMTP id fw4mr25814489pdb.99.1407785019393; Mon, 11 Aug 2014 12:23:39 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id b3si10582562pdp.77.2014.08.11.12.23.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Aug 2014 12:23:39 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-return-84453-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 23995 invoked by alias); 11 Aug 2014 19:23:15 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list List-Id: List-Unsubscribe: , List-Subscribe: List-Archive: List-Post: , List-Help: , Sender: binutils-owner@sourceware.org Delivered-To: mailing list binutils@sourceware.org Received: (qmail 23960 invoked by uid 89); 11 Aug 2014 19:23:07 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 11 Aug 2014 19:23:05 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7BJN2Mq018355 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 11 Aug 2014 15:23:03 -0400 Received: from localhost.localdomain (ovpn-113-59.phx2.redhat.com [10.3.113.59]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7BJN1xb019601 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 11 Aug 2014 15:23:02 -0400 From: Yaakov Selkowitz To: binutils@sourceware.org Subject: [PATCH] ld: do not export __dso_handle for PE Date: Mon, 11 Aug 2014 14:22:59 -0500 Message-Id: <1407784979-9732-1-git-send-email-yselkowi@redhat.com> X-Original-Sender: yselkowi@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::235 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 * pe-dll.c (autofilter_symbollist_i386): Add __dso_handle. --- This is necessary for adding __cxa_atexit support for Cygwin in GCC without exporting __dso_handle from every DLL. (On ELF platforms, __dso_handle is marked hidden visibility, but we don't have support for that yet on PE platforms.) ld/pe-dll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ld/pe-dll.c b/ld/pe-dll.c index d38f30d..61d8fa5 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -235,6 +235,7 @@ static const autofilter_entry_type autofilter_symbollist_i386[] = { STRING_COMMA_LEN ("_impure_ptr") }, { STRING_COMMA_LEN ("_fmode") }, { STRING_COMMA_LEN ("environ") }, + { STRING_COMMA_LEN ("__dso_handle") }, { NULL, 0 } };