From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: Daniel Walker To: libc-alpha@sourceware.org Cc: xe-linux-external@cisco.com, Jeremy Stenglein 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-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL 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: Fri, 26 Jun 2020 19:32:37 -0000 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