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 64CB41F8C6 for ; Tue, 3 Aug 2021 18:12:54 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 68CAF393BC27 for ; Tue, 3 Aug 2021 18:12:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 68CAF393BC27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1628014373; bh=xV2vcJR6AcapZQ+iZM0JPx7h+KfBIZuQjuL021ZVqoI=; h=To:Subject:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=BD5dJl4nglsQk+r1+gOVGJ/W+gVi95+n1godo47SoH40cKWz9MeUmSB+DzzgGJs4G nzuYcSCdlXU0v0VBYi+b5XIw0g4dzXzonTpVog75AUloYC07wEvMrKn7xMZnV79bPu 2Woe44BG7Bg3SiOyKkHNiciD7QVk0XmAjIa+K+ak= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 7DD38385381D for ; Tue, 3 Aug 2021 18:12:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7DD38385381D Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-261-kQKWPLDfNrac8qe328SIUw-1; Tue, 03 Aug 2021 14:12:31 -0400 X-MC-Unique: kQKWPLDfNrac8qe328SIUw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 18B9A107ACF5; Tue, 3 Aug 2021 18:12:30 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.123]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5AD035D9DC; Tue, 3 Aug 2021 18:12:24 +0000 (UTC) To: Daniel Walker Subject: Re: RFC: Add DT_GNU_DEBUG References: <20210727173958.GB1633923@zorba> <20210728154408.GF1633923@zorba> <20210728190211.GJ1633923@zorba> <87o8agto7v.fsf@oldenburg.str.redhat.com> <20210803163917.GU1633923@zorba> Date: Tue, 03 Aug 2021 20:12:22 +0200 In-Reply-To: <20210803163917.GU1633923@zorba> (Daniel Walker's message of "Tue, 3 Aug 2021 09:39:17 -0700") Message-ID: <87mtpyfldl.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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: Florian Weimer via Libc-alpha Reply-To: Florian Weimer 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" * Daniel Walker: > 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 wrot= e: >> > >> > * 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 t= he 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 dynami= c >> > > 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 aft= er >> > > relocation, like DT_DEBUG. >> > >> > What about adding DT_DEBUG_SIZE, specifying the size of the data point= ed >> > to by DT_DEBUG? >>=20 >> It works if we don't need to support static executables. >>=20 >> > Perhaps the gABI folks are interested in that, too? I think it's wort= h >> > a try. If the answer is =E2=80=9Cno=E2=80=9D, we can still add DT_GNU= _DEBUG_SIZE to the >> > GNU ABI. >>=20 >> I did. I didn't get any feedback. > > So no feedback equal "not interested" ? I think the issue is that the struct already has a version field. It's only a problem for us because we have architectures with copy relocations *and* have exposed _r_debug as a public symbol. However, we can do what we did for _sys_errlist in the past (new symbol versions for each size change), so it's not a real blocker. I suppose the easiest way forward would be to grow _r_debug this way, bump the version field past Solaris' version, add the Solaris members (possibly with dummy values), and add our own new stuff afterwards. Thanks, Florian