From 0656b649c56ea51cceb86e94842d89946cee919b Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Thu, 2 Dec 2021 23:01:29 +0100 Subject: [PATCH] elf: add definition for ELF_NOTE_FDO and NT_FDO_PACKAGING_METADATA note As defined on: https://systemd.io/COREDUMP_PACKAGE_METADATA/ this note will be used starting from Fedora 36. Signed-off-by: Luca Boccassi --- 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" -- 2.43.5