From patchwork Fri Dec 22 13:05:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 852361 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-88531-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="aD7pFwK6"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3z37zR35jYz9s74 for ; Sat, 23 Dec 2017 00:05:39 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type; q=dns; s=default; b=IcNmSwruGUl1lxh8fQBm+bGUmRpQB oRgZU2MwBia3attPEfrhHM5FzxFMjxGFmOyb2ofk6dkhciHLPK4tC0tGNeY22RaO IC9327MQUBm7JY2vTptPIyv80lu0KQSJolng8jRzIwICGx2ZpJDctLb2MaT2k+iL 5NXqGpHeeyobFM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type; s=default; bh=1JaJNUiOkDkVrLNxiM65ZS676Bo=; b=aD7 pFwK6sf9ZTQa7y/4b7RKAIpE5JNFwlaAOnUMN8u05NsdCozEOKV3BWTEHhZt0jHZ Avso4BmM4hLPHFU8cM2LRztZMPO6SfvUjYJzwI2fyDlEf0a6AvcUkr2Eyg5lTJSZ ZaE4wfv5cE+2Um3M/z5s1QK4Pyxww1n0OgpThhyg= Received: (qmail 17915 invoked by alias); 22 Dec 2017 13:05:33 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 17893 invoked by uid 89); 22 Dec 2017 13:05:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com To: GNU C Library From: Florian Weimer Subject: Proposal: Deprecate static dlopen Message-ID: Date: Fri, 22 Dec 2017 14:05:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 See this thread for some background: https://sourceware.org/ml/libc-alpha/2017-12/msg00521.html The only useful application for dlopen is access to NSS functionality because static dlopen binaries are more tightly tied to a specific glibc version than dynamically linked binaries. If we provide NSS access through a helper program (e.g., a special mode of getent), then the need for dlopen goes away, and static linking even becomes more usable. Thanks, Florian commit f70309a186e5ab045c9808ff10ca9ba5eb9f6b58 Author: Florian Weimer Date: Fri Dec 22 14:03:00 2017 +0100 NEWS: Deprecate static dlopen diff --git a/NEWS b/NEWS index 0a162f6643..d8e4c890c3 100644 --- a/NEWS +++ b/NEWS @@ -71,6 +71,10 @@ Major new features: Deprecated and removed features, and other changes affecting compatibility: +* Support for statically linked applications which call dlopen is deprecated + and will be removed in a future version of glibc. Applications which call + dlopen need to be linked dynamically instead. + * Support for old programs which use internal stdio data structures and functions is deprecated. This includes programs which use the C++ streams provided by libstdc++ in GCC 2.95. Programs which use the internal