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 3E5291F953 for ; Mon, 29 Nov 2021 20:36:16 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3526D385AC36 for ; Mon, 29 Nov 2021 20:36:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3526D385AC36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1638218175; bh=KOZxOf7zap8XNggKh+gJuY1AtEQ9zrGLBKvOsKlPJRE=; 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=pgjP4KYAhrBTfRmKZZU/s8xETz1nbUE0BO5u0JvtuHuwpYBgD07ncCI8TBVP8O/79 dUcXKwkMI9si51XMrPQFrjOrBBR0Nkp5QAH3Gr0Y9p8ZGtSozyBsP+t1sb+kPu4X5Y 7M6q8aOxHpKvbLw+2t3gfkYxKmo1xPdsAxLjD1KQ= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 602F0385AC3B for ; Mon, 29 Nov 2021 20:35:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 602F0385AC3B Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-285-7wzFkCzMNRieyQQA3JwYRQ-1; Mon, 29 Nov 2021 15:35:22 -0500 X-MC-Unique: 7wzFkCzMNRieyQQA3JwYRQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 81F0F80D680; Mon, 29 Nov 2021 20:35:21 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 758C1196E5; Mon, 29 Nov 2021 20:35:20 +0000 (UTC) To: luca.boccassi@gmail.com Subject: Re: [PATCH v3] elf: add definition for ELF_NOTE_FDO and NT_FDO_PACKAGING_METADATA note References: <20211121193939.105186-1-luca.boccassi@gmail.com> <20211126205856.34805-1-luca.boccassi@gmail.com> Date: Mon, 29 Nov 2021 21:35:18 +0100 In-Reply-To: <20211126205856.34805-1-luca.boccassi@gmail.com> (luca boccassi's message of "Fri, 26 Nov 2021 20:58:56 +0000") Message-ID: <87ilwaem49.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.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain 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: mark@klomp.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" * luca boccassi: > From: Luca Boccassi > > As defined on: https://systemd.io/COREDUMP_PACKAGE_METADATA/ > this note will be used starting from Fedora 36. > > Signed-off-by: Luca Boccassi > --- > v2: as suggested by Mark, indent comment and add NT_ suffix > v3: as requested by Florian, add ELF_NOTE_FDO definition > > elf/elf.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/elf/elf.h b/elf/elf.h > index 50f87baceb..baa6c6693e 100644 > --- a/elf/elf.h > +++ b/elf/elf.h > @@ -1259,6 +1259,8 @@ typedef struct > /* Note entries for GNU systems have this name. */ > #define ELF_NOTE_GNU "GNU" > > +/* Note entries for freedesktop.org have this name. */ > +#define ELF_NOTE_FDO "FDO" > > /* Defined types of notes for Solaris. */ > > @@ -1302,6 +1304,10 @@ typedef struct > /* Program property. */ > #define NT_GNU_PROPERTY_TYPE_0 5 > > +/* Packaging metadata as defined on > + https://systemd.io/COREDUMP_PACKAGE_METADATA/ */ > +#define NT_FDO_PACKAGING_METADATA 0xcafe1a7e > + > /* Note section name of program property. */ > #define NOTE_GNU_PROPERTY_SECTION_NAME ".note.gnu.property" I'm going to apply this later this week if no one objects. (Note that the format of the note payload is very much unlike everything else we do in the ELF space; see the URL.) Thanks, Florian