[3/3] elflint: Recognize NT_FDO_PACKAGING_METADATA
Commit Message
Signed-off-by: Mark Wielaard <mark@klomp.org>
---
src/ChangeLog | 4 ++++
src/elflint.c | 7 +++++++
2 files changed, 11 insertions(+)
@@ -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.
@@ -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"