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=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, PDS_RDNS_DYNAMIC_FP,RCVD_IN_DNSWL_MED,RDNS_DYNAMIC,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.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 1B2091F8C6 for ; Tue, 17 Aug 2021 01:12:39 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3D9D3395BC3C for ; Tue, 17 Aug 2021 01:12:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D9D3395BC3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1629162758; bh=smOfv2p5IBQ9gyKVwUill145kfVtbCVS63Ta9e95qtw=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=XZ2Zxm4SagR2EWfrKHj67YbPqCWxdHwJvOaCS9LbR7IzhWoM+uBi49h5F1TyjBvxd nvP6iSfukzd5J9F0eVbsZ/pehOcNbQ1+f6UmgpkNAF2GVxZIAgTuGPo+fFS8o11sDc K5bk4wot1ThY2nWwvO09CeoLd7ixfQ6zhGKX5Iw4= Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 2FCB9395C006 for ; Tue, 17 Aug 2021 01:07:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2FCB9395C006 Received: by mail-pl1-x630.google.com with SMTP id q2so22766909plr.11 for ; Mon, 16 Aug 2021 18:07:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=smOfv2p5IBQ9gyKVwUill145kfVtbCVS63Ta9e95qtw=; b=iriWA41j+rI9FnUJljmpN6Mh8cWXz60IHV7krgNvE1ZyyQmn1d3ve7c5g6S5Xr3KxJ lNUubqofknFOaW3hTNoobZPjLesI7CFRd+tvNNmieMe0XyR3VKimMeA09RC7X5KI4/1g NO3ztkRnPyi2VhieMBGFvmDFV3EcOq4VGbVB7b286gP6td4TQpZJcJUUWosr92dB5Q+w YeNli2tgXp/LVNZWZjMaq9O4PqHYqQRCczh8d3AVmEiHW+sM0mqlh1FbaaD4Kos9Ip36 QPtoyO77/MaFMOf5r2JQ8Qm5dt4vzD/5ImyMxXuA2fPTw68xuKSqpq5n6EXs1x8wh1BD oQTA== X-Gm-Message-State: AOAM530PzTtYxVzxGzU36WML9lRonHt+cv9xiOCce2Fyx+yIgEQUgCl0 BsdPvfwaSsMBY4YwW0qtfP4xmoYRhp3fNJ9kdxw= X-Google-Smtp-Source: ABdhPJyLuWghIsHe6kCRuIBrGvFYRdQZmAY2NgTKy+zmg3/L6NLfgKI4GxaKqG0O9EUB3DnHN862tZTctK/8OuLcGmU= X-Received: by 2002:a65:5b86:: with SMTP id i6mr877512pgr.180.1629162458356; Mon, 16 Aug 2021 18:07:38 -0700 (PDT) MIME-Version: 1.0 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> <20210816161848.GA1633923@zorba> In-Reply-To: <20210816161848.GA1633923@zorba> Date: Mon, 16 Aug 2021 18:07:02 -0700 Message-ID: Subject: Re: [PATCH] Extend struct r_debug to support multiple namespaces To: Daniel Walker Content-Type: text/plain; charset="UTF-8" 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: "H.J. Lu via Libc-alpha" Reply-To: "H.J. Lu" 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 Mon, Aug 16, 2021 at 9:20 AM Daniel Walker wrote: > > 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 ? I submitted the v2 patch. -- H.J.