readelf: recognize FDO Packaging Metadata ELF note
authorLuca Boccassi <luca.boccassi@gmail.com>
Wed, 1 Dec 2021 14:44:25 +0000 (14:44 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 1 Dec 2021 14:44:25 +0000 (14:44 +0000)
commite5382207cdddea07c6456fc1c0e6bea73b3d9947
tree56b48316541967e826a674e5ead3b65a567b1e30
parente1ccbd6d3ad36569715fd12889f5ab2cca3f842c
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>
binutils/readelf.c
include/elf/common.h