elflint: Recognize NT_FDO_PACKAGING_METADATA
authorMark Wielaard <mark@klomp.org>
Thu, 24 Mar 2022 23:00:47 +0000 (00:00 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 24 Mar 2022 23:00:47 +0000 (00:00 +0100)
Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/elflint.c

index 0e705b7..1e3c31a 100644 (file)
@@ -1,3 +1,7 @@
+2022-03-24  Mark Wielaard  <mark@klomp.org>
+
+       * elflint.c (check_note_data): Recognize NT_FDO_PACKAGING_METADATA.
+
 2022-03-11  Mark Wielaard  <mark@klomp.org>
 
        * addr2line.c (OPT_RELATIVE): New constant.
index ef7725c..d919936 100644 (file)
@@ -4384,6 +4384,13 @@ section [%2d] '%s': unknown core file note type %" PRIu32
            else
              goto unknown_note;
 
+         case NT_FDO_PACKAGING_METADATA:
+           if (nhdr.n_namesz == sizeof ELF_NOTE_FDO
+               && strcmp (data->d_buf + name_offset, ELF_NOTE_FDO) == 0)
+             break;
+           else
+             goto unknown_note;
+
          case 0:
            /* Linux vDSOs use a type 0 note for the kernel version word.  */
            if (nhdr.n_namesz == sizeof "Linux"