unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer via Libc-alpha <libc-alpha@sourceware.org>
To: luca.boccassi@gmail.com
Cc: mark@klomp.org, libc-alpha@sourceware.org
Subject: Re: [PATCH v2] elf: add definition for NT_FDO_PACKAGING_METADATA note
Date: Fri, 26 Nov 2021 21:27:55 +0100	[thread overview]
Message-ID: <87h7byirw4.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <20211126170127.1075409-1-luca.boccassi@gmail.com> (luca boccassi's message of "Fri, 26 Nov 2021 17:01:27 +0000")

* luca boccassi:

> From: Luca Boccassi <bluca@debian.org>
>
> As defined on: https://systemd.io/COREDUMP_PACKAGE_METADATA/
> this note will be used starting from Fedora 36.
>
> Signed-off-by: Luca Boccassi <bluca@debian.org>
> ---
> v2: as suggested by Mark, indent comment and add NT_ suffix
>
>  elf/elf.h | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/elf/elf.h b/elf/elf.h
> index 50f87baceb..f2b72bd9f5 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -1302,6 +1302,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"

Would you please add a definition of ELF_NOTE_FDO earlier in the file,
similar to ELF_NOTE_GNU?

I would like to point out that the format of the note is JSON-encoded,
so it's not really how we have done things so far in the GNU ABI.  I
guess we can add this as a one-off exception.  It shouldn't be an
example where things are supposed to go in the future.

Thanks,
Florian


  reply	other threads:[~2021-11-26 20:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-21 19:39 [PATCH] elf: add definition for FDO_PACKAGING_METADATA note luca.boccassi--- via Libc-alpha
2021-11-22 14:03 ` Florian Weimer via Libc-alpha
2021-11-22 14:44   ` Luca Boccassi via Libc-alpha
2021-11-22 15:17     ` Florian Weimer via Libc-alpha
2021-11-23  9:42       ` Mark Wielaard
2021-11-26 16:49 ` Mark Wielaard
2021-11-26 17:01   ` Luca Boccassi via Libc-alpha
2021-11-26 17:01 ` [PATCH v2] elf: add definition for NT_FDO_PACKAGING_METADATA note luca.boccassi--- via Libc-alpha
2021-11-26 20:27   ` Florian Weimer via Libc-alpha [this message]
2021-11-26 20:59     ` Luca Boccassi via Libc-alpha
2021-11-26 20:58 ` [PATCH v3] elf: add definition for ELF_NOTE_FDO and " luca.boccassi--- via Libc-alpha
2021-11-29 20:35   ` Florian Weimer via Libc-alpha
2021-12-02 22:02   ` Florian Weimer via Libc-alpha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7byirw4.fsf@oldenburg.str.redhat.com \
    --to=libc-alpha@sourceware.org \
    --cc=fweimer@redhat.com \
    --cc=luca.boccassi@gmail.com \
    --cc=mark@klomp.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).