From patchwork Mon Mar 30 17:42:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vivek Dasmohapatra X-Patchwork-Id: 38662 Return-Path: X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by sourceware.org (Postfix) with ESMTPS id 52028385DC05 for ; Mon, 30 Mar 2020 17:42:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 52028385DC05 Received: from noise.collabora.co.uk (unknown [IPv6:2a00:5f00:102:0:c0a7:51ff:feaf:e642]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vivek) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 97BBF2966B4; Mon, 30 Mar 2020 18:42:15 +0100 (BST) From: =?utf-8?q?Vivek_Das=C2=A0Mohapatra?= To: vivek@etla.org, libc-alpha@sourceware.org Subject: [RFC][PATCH 0/6] binutils patches to add DT_FLAGS_1 / DF_1_UNIQUE Date: Mon, 30 Mar 2020 18:42:01 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Spam-Status: No, score=-17.7 required=5.0 tests=BAYES_00, GIT_PATCH_3, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2020 17:42:18 -0000 This patch series is in support of the glibc RTLD_SHARED work discussed in https://sourceware.org/bugzilla/show_bug.cgi?id=22745. It adds a DT_FLAGS_1 value DF_1_UNIQUE which is intended to mark libraries which should implicitly be opened as if RTLD_SHARED had been passed to dlmopen when the target namespace is not LM_ID_BASE. This patch series adds support for DF_1_UNIQUE to ld, gold, and readelf (and documents it in the help text and so forth). Vivek Das Mohapatra (6): Define a new DT_FLAGS_1 flag DF_1_UNIQUE for ld, readelf et al Handle DF_1_UNIQUE in ld Document DF_1_UNIQUE in the man page and ld help output Handle DF_1_UNIQUE in readelf Define DT_FLAGS_1 flag DF_1_UNIQUE for gold Implement and document DF_1_UNIQUE handling in gold binutils/readelf.c | 5 +++++ elfcpp/elfcpp.h | 4 +++- gold/layout.cc | 2 ++ gold/options.h | 3 +++ include/elf/common.h | 1 + ld/emultempl/elf.em | 2 ++ ld/ld.texi | 7 +++++++ ld/lexsup.c | 2 ++ 8 files changed, 25 insertions(+), 1 deletion(-)