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.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 [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 06FEC1F8C6 for ; Tue, 3 Aug 2021 18:09:33 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 10813385381D for ; Tue, 3 Aug 2021 18:09:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 10813385381D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1628014172; bh=t0AscjpzCeB2v+qOuYo2raZ1ElWHTOhTZiYYecTEgIc=; 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=WfM9RALs7QSBqy/wyXt3MW/yBJE59uEZ8zbBaa5N3Rt/S8BlfpcCyUpwsL0trHA8O bRTFrcrWaOetbAnDULE67RjrLMPIV3JCJ3HNDf3fSPJkQuKzuIOaByy2bux3raGSff QE25nRGVOWI77FBCdcpru0SkPFRnrZg2tfNkyuh4= Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id B627C385381D for ; Tue, 3 Aug 2021 18:09:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B627C385381D Received: by mail-pl1-x632.google.com with SMTP id u2so7824plg.10 for ; Tue, 03 Aug 2021 11:09:12 -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:content-transfer-encoding; bh=t0AscjpzCeB2v+qOuYo2raZ1ElWHTOhTZiYYecTEgIc=; b=cfZTi5uVHTK8UzdFBhC4bi3HWEfh9bmL4ElvrvexHrMzK3T+cIbydmYd+MQ4abzw8o o2VfoYXWyeAnGWVqHxJvKU3QPJ8/irEtaGnhnrwOUl6atcrfEfR/qqLuFde8thJAomO1 VkHRw/dCJzXIb4X0i2z5fSJkG84WQEb7KxVx629S/Z8r4i+W5C+nC2twoTubzJYN1qON ab7fdquiUbuKPcxqSTL81ydLQSuDBVTFk2mUtiEkSe29p3Fhzx0ygVuLYuPcf2JVkwsU Aita89qjXMJIYXWkV4yPq02a/q2iRHke0SMYgtcwU4IKQXeyQmzG5c+ahcjGZyj9YXB4 p1aQ== X-Gm-Message-State: AOAM531inAlYpIvPq4Sq0zPC1pSny7bITwhODEhcVSe1ykbCO+x53Rwv fiO9RtDlFL9q+N1sOtnlw1ffR4+1fMPyxvP6qPo= X-Google-Smtp-Source: ABdhPJw1WpsvWrQ3StGd0kH8XJaEPU6A9liZPFCiWUGZ2OiNqL+lSfwThk1oFON7Z5xuEq87EUTHeAGaSo1b5/3TR6c= X-Received: by 2002:a17:90a:ab0f:: with SMTP id m15mr24239499pjq.154.1628014151718; Tue, 03 Aug 2021 11:09:11 -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> In-Reply-To: <20210803163917.GU1633923@zorba> Date: Tue, 3 Aug 2021 11:08:35 -0700 Message-ID: Subject: Re: RFC: Add DT_GNU_DEBUG To: Daniel Walker Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Tue, Aug 3, 2021 at 9:39 AM Daniel Walker wrote: > > On Mon, Aug 02, 2021 at 06:10:55AM -0700, H.J. Lu wrote: > > On Sun, Aug 1, 2021 at 10:22 PM Florian Weimer wro= te: > > > > > > * H. J. Lu: > > > > > > > On Wed, Jul 28, 2021 at 1:04 PM H.J. Lu wrote= : > > > >> > Do you want to drive this, or should I ? It looks like you know = the people > > > >> > involved better than I do. > > > >> > > > > >> > > > >> https://groups.google.com/g/generic-abi/c/1ngxmSwrafc > > > >> > > > > > > > > I don't think the gABI community is interested in a new debug dynam= ic > > > > tag. I propose DT_GNU_DEBUG: > > > > > > > > #define DT_GNU_DEBUG 0x6ffffff8 > > > > > > > > for the address of a pointer which will be filled by the dynamic > > > > linker. Linker should > > > > add the DT_GNU_DEBUG entry to executable's dynamic section. > > > > > > > > BTW, we have a choice. DT_GNU_DEBUG can be readonly or readonly af= ter > > > > relocation, like DT_DEBUG. > > > > > > What about adding DT_DEBUG_SIZE, specifying the size of the data poin= ted > > > to by DT_DEBUG? > > > > It works if we don't need to support static executables. Given that we export _r_debug and some programs, like GNAT, use it, we should keep and fix _r_debug. We should also make the new interface available for these programs and include the structure size in the new interface. > > > > > Perhaps the gABI folks are interested in that, too? I think it's wor= th > > > a try. If the answer is =E2=80=9Cno=E2=80=9D, we can still add DT_GN= U_DEBUG_SIZE to the > > > GNU ABI. > > > > I did. I didn't get any feedback. > > So no feedback equal "not interested" ? I'd like to resolve this issue for glibc 2.35. We need to move forward wit= h a new DT_XXX. We can't wait too long. --=20 H.J.