* [PATCH] elflint: Don't check section group without flags word.
@ 2017-03-28 11:33 Mark Wielaard
0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2017-03-28 11:33 UTC (permalink / raw)
To: elfutils-devel; +Cc: Mark Wielaard
https://sourceware.org/bugzilla/show_bug.cgi?id=21320
Signed-off-by: Mark Wielaard <mark@klomp.org>
---
src/ChangeLog | 4 ++++
src/elflint.c | 5 ++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/ChangeLog b/src/ChangeLog
index 0601198..f5378a9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2017-03-28 Mark Wielaard <mark@klomp.org>
+
+ * elflint (check_group): Don't check if there is no flag word.
+
2017-02-16 Ulf Hermann <ulf.hermann@qt.io>
* addr2line.c: Include printversion.h
diff --git a/src/elflint.c b/src/elflint.c
index 66a13ca..bdbf328 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -2646,9 +2646,12 @@ section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"),
idx, section_name (ebl, idx));
if (data->d_size < elsize)
- ERROR (gettext ("\
+ {
+ ERROR (gettext ("\
section [%2d] '%s': section group without flags word\n"),
idx, section_name (ebl, idx));
+ return;
+ }
else if (be_strict)
{
if (data->d_size < 2 * elsize)
--
1.8.3.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-28 11:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-28 11:33 [PATCH] elflint: Don't check section group without flags word Mark Wielaard
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).