]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
elflint: Don't check section group without flags word.
authorMark Wielaard <mark@klomp.org>
Tue, 28 Mar 2017 11:33:03 +0000 (13:33 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 3 Apr 2017 22:28:03 +0000 (00:28 +0200)
https://sourceware.org/bugzilla/show_bug.cgi?id=21320

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/elflint.c

index d285e068b59669ca30884e9e0ffa2cb714d20f3c..e022503b52aed39faada661e7c31e69f4b7c52ef 100644 (file)
@@ -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-03-27  Mark Wielaard  <mark@klomp.org>
 
        * elflint.c (check_elf_header): Sanity check phnum and shnum.
index 6c83a773e9ae5a239534033f5b89f592e8bacd8f..e0c65b6a53216a01f5147b40a0ff4a259e8f85d2 100644 (file)
@@ -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)