]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: add definition for ELF_NOTE_FDO and NT_FDO_PACKAGING_METADATA note
authorLuca Boccassi <bluca@debian.org>
Thu, 2 Dec 2021 22:01:29 +0000 (23:01 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 2 Dec 2021 22:01:51 +0000 (23:01 +0100)
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>
elf/elf.h

index 50f87bacebe3736af8c24b928e85c26dc72b449c..baa6c6693e8c94040d9f38500987a2e0add191f4 100644 (file)
--- 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"