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: AS3215 2.6.0.0/16 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 [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 CD61D1F8C6 for ; Mon, 9 Aug 2021 17:20:46 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 271B7389853D for ; Mon, 9 Aug 2021 17:20:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 271B7389853D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1628529645; bh=N/dqjlyvNtdljmVZMEWxwELmav0acYJTuGK/6OAVsUc=; 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=nnemkOelGo1Rmeu3cS38IFWxkn1f+34jmq81x1xmo99qF45h6lJVfnoWZRdw0j2dR nRy3VFM/CQqn+p5ZJcbu3YKjNLz+Z+NGqueEuXbzQjolvslomIlP2MyVZLqSqMZNlQ kXHu5ucH+Oyc8eZ0BrCY7gnbZQdZgWDECRjUsAJ4= Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) by sourceware.org (Postfix) with ESMTPS id 58E74389803D for ; Mon, 9 Aug 2021 17:16:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 58E74389803D X-IronPort-AV: E=Sophos;i="5.84,308,1620691200"; d="scan'208";a="727288651" Received: from alln-core-9.cisco.com ([173.36.13.129]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 09 Aug 2021 17:16:55 +0000 Received: from zorba ([10.24.16.34]) by alln-core-9.cisco.com (8.15.2/8.15.2) with ESMTPS id 179HGrXI007484 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 9 Aug 2021 17:16:54 GMT Date: Mon, 9 Aug 2021 10:16:53 -0700 To: "H.J. Lu" Subject: Re: RFC: 2 choices of DT_XXX for dlmopen Message-ID: <20210809171653.GO1633923@zorba> References: <87o8agto7v.fsf@oldenburg.str.redhat.com> <20210803163917.GU1633923@zorba> <87mtpyfldl.fsf@oldenburg.str.redhat.com> <87pmuue175.fsf@oldenburg.str.redhat.com> 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.16.34, [10.24.16.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 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. Daniel