File elflint-dont-check-section-group-without-flags-word.patch of Package elfutils.8903
TCH] elflint: Don't check section group without flags word.
From: Mark Wielaard <mark at klomp dot org>
To: elfutils-devel at sourceware dot org
Cc: Mark Wielaard <mark at klomp dot org>
Date: Tue, 28 Mar 2017 13:33:03 +0200
Subject: [PATCH] elflint: Don't check section group without flags word.
Reference: bnc#1033087
https://sourceware.org/bugzilla/show_bug.cgi?id=21320
elfutils packaging edits:
- changelog hunk removed from original patch to avoid conflict
Signed-off-by: Mark Wielaard <mark@klomp.org>
---
src/elflint.c | 5 ++++-
2 files changed, 8 insertions(+), 1 deletion(-)
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