From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D01741F5AE for ; Fri, 26 Jun 2020 19:32:40 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E1C28388C002; Fri, 26 Jun 2020 19:32:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E1C28388C002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1593199958; bh=0k8FNwtKjov5qPBKCb7Ka1U6j8qHuXSGzeYVTxSH1xA=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=hyK7Irl2K2FR8HCnpu1fa1ezo6nccQ1ziQprDQMvSzePpcm36mH8CPw8rzYGUDy3N mIoBAXrF1aL+4jpGAhUp5qE7S8sawDUYdndS+GOhBoaDigyrEemdDPVKCk7n7NH826 DXN7SyT6JNoc3WQSQgH402/y5lc9FvM6JBFDnqAo= Received: from rcdn-iport-5.cisco.com (rcdn-iport-5.cisco.com [173.37.86.76]) by sourceware.org (Postfix) with ESMTPS id 03CA73840C19 for ; Fri, 26 Jun 2020 19:32:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 03CA73840C19 X-IronPort-AV: E=Sophos;i="5.75,282,1589241600"; d="scan'208";a="528276817" Received: from alln-core-8.cisco.com ([173.36.13.141]) by rcdn-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 26 Jun 2020 19:32:34 +0000 Received: from zorba.cisco.com ([10.24.15.228]) by alln-core-8.cisco.com (8.15.2/8.15.2) with ESMTP id 05QJWSW3030756; Fri, 26 Jun 2020 19:32:29 GMT To: libc-alpha@sourceware.org Subject: [RFC PATCH 0/3] implement dlmopen hooks for gdb Date: Fri, 26 Jun 2020 12:32:25 -0700 Message-Id: <20200626193228.1953-1-danielwa@cisco.com> X-Mailer: git-send-email 2.17.1 X-Auto-Response-Suppress: DR, OOF, AutoReply X-Outbound-SMTP-Client: 10.24.15.228, [10.24.15.228] X-Outbound-Node: alln-core-8.cisco.com 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: , From: Daniel Walker via Libc-alpha Reply-To: Daniel Walker Cc: Jeremy Stenglein , xe-linux-external@cisco.com Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Cisco System, Inc. has a need to have dlmopen support in gdb, which required glibc changes. I think it was known when glibc implemented dlmopen that gdb would not work with it. Since 2015 Cisco has had these patches in our inventor to fix issues in glibc which prevented this type of gdb usage. This RFC is mainly to get guidance on this implementation. We have some individuals who have signed the copyright assignment for glibc, and we will submit these (or different patches) formally thru those channels if no one has issues with the implementation. Also included in this are a couple of fixes which went along with the original implementation. Please provide any comments you might have. Conan C Huang (3): Segfault when dlopen with RTLD_GLOBAL in dlmopened library glibc: dlopen RTLD_NOLOAD optimization add r_debug multiple namespaces support elf/dl-close.c | 7 ++++++- elf/dl-debug.c | 13 ++++++++++--- elf/dl-open.c | 8 +++++++- elf/link.h | 4 ++++ 4 files changed, 27 insertions(+), 5 deletions(-) -- 2.17.1