summaryrefslogtreecommitdiff
path: root/src/elflint.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2017-03-28 13:33:03 +0200
committerMark Wielaard <mark@klomp.org>2017-04-04 00:28:03 +0200
commitfb6709f1a41b58a9557ea45b7f53ae678c660b21 (patch)
tree390cfafbae3de74e198dbf35f0ae375a9fe977d1 /src/elflint.c
parent4314716cd498bb51639db717bd7ce6182de33322 (diff)
downloadelfutils-fb6709f1a41b58a9557ea45b7f53ae678c660b21.tar.gz
elflint: Don't check section group without flags word.
https://sourceware.org/bugzilla/show_bug.cgi?id=21320 Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'src/elflint.c')
-rw-r--r--src/elflint.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/elflint.c b/src/elflint.c
index 6c83a773..e0c65b6a 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -2681,9 +2681,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)