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.2 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 E83631F8C6 for ; Mon, 9 Aug 2021 14:33:22 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F2E30389683D for ; Mon, 9 Aug 2021 14:33:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F2E30389683D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1628519602; bh=7s/34lmB/f3EWb80XIXLCetAs/yd+xfAdgRVDGsYMPM=; 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=duYgBiHcv80DIFKFADJbBxVgCqDPvylNnXBSuYlgXBtb6nfzvt6bYgiuYrxJRXy4y Heu+TZuCsJ3It1vc0kL5feT+EQEu8RRd32NuFIfshrH1g2JnII9erIvOtwSUjUz+UC rXmq+Ap6CzbLKZQqqpHgTDhWcJGHF11gFfeK2o78= Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by sourceware.org (Postfix) with ESMTPS id 9F904385740E for ; Mon, 9 Aug 2021 14:33:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9F904385740E Received: by mail-pj1-x102d.google.com with SMTP id mq2-20020a17090b3802b0290178911d298bso186948pjb.1 for ; Mon, 09 Aug 2021 07:33:02 -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=7s/34lmB/f3EWb80XIXLCetAs/yd+xfAdgRVDGsYMPM=; b=PXTN17T+FFAeRoTt95TV5e5p+JwlSUWZnSyTvEDiOpRQ3XgIXnDjxiFSJUYD/Qczpw cNx/q9vWRM+krnYvje/ZGoO5biidPClpOFKzBnO9tSDNnJZxmm14KF0uCDtCpWefjxsd cjzAu5gUx+NC80xR4hZ52vHwUGwfyOOSZradKKNXu0YKdSBNQ8uDcIZtYpfyGzcVu6y1 9ADbDfm8vi7lNnI9RXmFF5Vzm5oIFLw76XEM7F4/LZhv9XLYXfj2o2WSP0LGOnxEAIFh DL1tN90c3FHMH3hAFdko/ERr3NrdTN+tqSwT72hRbOI10Gv8lH2+1YKz3fjNUhRNWMne dHZg== X-Gm-Message-State: AOAM531J9Nzg4LPXqz+t1C3AGsuRIP3RtdOr9ORShIW68izWue9K975a gyQtCZvMdjNlCvhpSSZoc1WKthleTYpvxOCCFu8= X-Google-Smtp-Source: ABdhPJyHiV76Hwryu4+xfln38jco/RaUGe8Jid2vNdZiYUmd2S6Rvu5QXmctO9Z/8jxbbFPps/RkYF6klkCH1k1q4KY= X-Received: by 2002:a62:87c5:0:b029:3b5:f90f:c2eb with SMTP id i188-20020a6287c50000b02903b5f90fc2ebmr24732471pfe.28.1628519581697; Mon, 09 Aug 2021 07:33:01 -0700 (PDT) MIME-Version: 1.0 References: <20210727173958.GB1633923@zorba> <20210728154408.GF1633923@zorba> <20210728190211.GJ1633923@zorba> <87o8agto7v.fsf@oldenburg.str.redhat.com> <20210803163917.GU1633923@zorba> <87mtpyfldl.fsf@oldenburg.str.redhat.com> <87pmuue175.fsf@oldenburg.str.redhat.com> In-Reply-To: Date: Mon, 9 Aug 2021 07:32:26 -0700 Message-ID: Subject: RFC: 2 choices of DT_XXX for dlmopen To: Florian Weimer 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: 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" 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? -- H.J.