From: Mark Wielaard <mark@klomp.org>
To: elfutils-devel@sourceware.org
Cc: Luca Boccassi <luca.boccassi@gmail.com>, Mark Wielaard <mark@klomp.org>
Subject: [PATCH 3/3] elflint: Recognize NT_FDO_PACKAGING_METADATA
Date: Fri, 25 Mar 2022 00:14:38 +0100 [thread overview]
Message-ID: <20220324231438.350551-4-mark@klomp.org> (raw)
In-Reply-To: <20220324231438.350551-1-mark@klomp.org>
Signed-off-by: Mark Wielaard <mark@klomp.org>
---
src/ChangeLog | 4 ++++
src/elflint.c | 7 +++++++
2 files changed, 11 insertions(+)
diff --git a/src/ChangeLog b/src/ChangeLog
index 0e705b7d..1e3c31a8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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.
diff --git a/src/elflint.c b/src/elflint.c
index ef7725ce..d919936f 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -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"
--
2.30.2
next prev parent reply other threads:[~2022-03-24 23:15 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-19 0:31 [PATCH] libebl: recognize FDO Packaging Metadata ELF note luca.boccassi
2021-11-21 16:33 ` Mark Wielaard
2021-11-21 19:54 ` Luca Boccassi
2021-11-21 19:43 ` [PATCH v2] " luca.boccassi
2021-11-25 17:02 ` Luca Boccassi
2021-11-30 11:25 ` Mark Wielaard
2021-11-30 12:37 ` Luca Boccassi
2021-11-30 16:23 ` Frank Ch. Eigler
2021-11-30 16:49 ` Florian Weimer
2021-11-30 20:04 ` Mark Wielaard
2021-12-02 15:16 ` Frank Ch. Eigler
2021-12-02 15:44 ` Florian Weimer
2021-12-05 17:36 ` Mark Wielaard
2022-03-24 23:14 ` Mark Wielaard
2022-03-24 23:14 ` [PATCH 1/3] libelf: Sync elf.h from glibc Mark Wielaard
2022-03-24 23:14 ` [PATCH 2/3] libebl: recognize FDO Packaging Metadata ELF note Mark Wielaard
2022-03-24 23:14 ` Mark Wielaard [this message]
2022-03-25 11:17 ` [PATCH v2] " Luca Boccassi
2022-03-25 13:39 ` Mark Wielaard
2022-03-25 13:52 ` Luca Boccassi
2022-03-25 14:47 ` Mark Wielaard
2022-03-25 14:55 ` Luca Boccassi
2022-03-26 16:33 ` Mark Wielaard
2022-03-26 16:57 ` Luca Boccassi
2022-03-26 18:19 ` Luca Boccassi
2022-03-28 9:57 ` Mark Wielaard
2022-03-28 10:41 ` Luca Boccassi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220324231438.350551-4-mark@klomp.org \
--to=mark@klomp.org \
--cc=elfutils-devel@sourceware.org \
--cc=luca.boccassi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).