diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2021-12-01 14:44:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-12-01 14:44:25 +0000 |
commit | e5382207cdddea07c6456fc1c0e6bea73b3d9947 (patch) | |
tree | 56b48316541967e826a674e5ead3b65a567b1e30 /include | |
parent | e1ccbd6d3ad36569715fd12889f5ab2cca3f842c (diff) | |
download | binutils-gdb-e5382207cdddea07c6456fc1c0e6bea73b3d9947.tar.gz |
readelf: recognize FDO Packaging Metadata ELF note
As defined on: https://systemd.io/COREDUMP_PACKAGE_METADATA/
this note will be used starting from Fedora 36. Allow
readelf --notes to pretty print it:
Displaying notes found in: .note.package
Owner Data size Description
FDO 0x00000039 FDO_PACKAGING_METADATA
Packaging Metadata: {"type":"deb","name":"fsverity-utils","version":"1.3-1"}
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/elf/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/elf/common.h b/include/elf/common.h index 5d31e35ec89..61cfaacfe6c 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -997,6 +997,9 @@ #define NT_FREEBSD_ABI_TAG 1 +/* Values for FDO .note.package notes as defined on https://systemd.io/COREDUMP_PACKAGE_METADATA/ */ +#define FDO_PACKAGING_METADATA 0xcafe1a7e + /* These three macros disassemble and assemble a symbol table st_info field, which contains the symbol binding and symbol type. The STB_ and STT_ defines identify the binding and type. */ |