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-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-4.3 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (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 357191F8C6 for ; Mon, 16 Aug 2021 16:20:47 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 170223951828 for ; Mon, 16 Aug 2021 16:20:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 170223951828 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1629130846; bh=VbnJXIlvn//gna4GDLoJW2vI/CcAp0K9tQ4UysmbKrk=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=PR5b2llbZJGc+FWXfAkjtzgSqsSNubWLUqetXTQv9suy3G0zRs1ssWWwwZV9Dt/i0 COh/7SHNNcI05qUCaAfBFbnDZqLsa75eAVdpnFqdDe96OD4TwbhU3I8bTChz63nMcL EJqOfBOT+EHyW8xzvgBrSvlNSv4WO5rUwYhiuFtg= Received: from rcdn-iport-6.cisco.com (rcdn-iport-6.cisco.com [173.37.86.77]) by sourceware.org (Postfix) with ESMTPS id 7F3B7386FC23 for ; Mon, 16 Aug 2021 16:20:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7F3B7386FC23 X-IronPort-AV: E=Sophos;i="5.84,326,1620691200"; d="scan'208";a="921839406" Received: from alln-core-9.cisco.com ([173.36.13.129]) by rcdn-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 16 Aug 2021 16:20:16 +0000 Received: from zorba ([10.24.26.34]) by alln-core-9.cisco.com (8.15.2/8.15.2) with ESMTPS id 17GGKEhY022606 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 16 Aug 2021 16:20:15 GMT Date: Mon, 16 Aug 2021 09:20:14 -0700 To: "H.J. Lu" Subject: Re: [PATCH] Extend struct r_debug to support multiple namespaces Message-ID: <20210816161848.GA1633923@zorba> References: <87o8agto7v.fsf@oldenburg.str.redhat.com> <20210803163917.GU1633923@zorba> <87mtpyfldl.fsf@oldenburg.str.redhat.com> <87pmuue175.fsf@oldenburg.str.redhat.com> <20210809171653.GO1633923@zorba> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Auto-Response-Suppress: DR, OOF, AutoReply X-Outbound-SMTP-Client: 10.24.26.34, [10.24.26.34] X-Outbound-Node: alln-core-9.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: Florian Weimer , Carlos O'Donell via Libc-alpha , Pedro Alves , Conan C Huang , "Metzger, Markus T" , Jeremy Stenglein , "xe-linux-external\(mailer list\)" Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" On Sat, Aug 14, 2021 at 05:33:36PM -0700, H.J. Lu wrote: > On Mon, Aug 09, 2021 at 10:16:53AM -0700, Daniel Walker wrote: > > On Mon, Aug 09, 2021 at 07:32:26AM -0700, H.J. Lu wrote: > > > We need a new DT_XXX to support dlmopen. We have 2 choices: > > > > > > 1. Similar to DT_DEBUG. Linker will allocate a new DT_XXX and > > > ld.so will fill it with the address of the new debug data structure for > > > dlmopen. > > > 2. Similar to DT_MIPS_RLD_MAP_REL/DT_MIPS_RLD_MAP. > > > Linker will allocate a space for a pointer, a new DT_XXX and fill > > > the DT_XXX entry with the address of the pointer. ld.so will update > > > the pointer with the address of the new debug data structure for > > > dlmopen. > > > > > > #1 is the most straightforward to implement. #2 is compatible with > > > the current MIPS implementation. > > > > > > Does anyone have any preferences? > > > > > > I have #1 fully implemented already. > > > > Here is a slightly different approach with DT_DEBUGSZ. The corresponding > linker patch is at > > https://sourceware.org/pipermail/binutils/2021-August/117706.html > > H.J. What advantages does this provide over have a different structure ? Lets say we wanted to extend the structure further in the future , is that possible in this implementation ? Daniel