From: Mark Wielaard Date: Tue, 28 Mar 2017 11:33:03 +0000 (+0200) Subject: elflint: Don't check section group without flags word. X-Git-Tag: elfutils-0.169~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb6709f1a41b58a9557ea45b7f53ae678c660b21;p=thirdparty%2Felfutils.git elflint: Don't check section group without flags word. https://sourceware.org/bugzilla/show_bug.cgi?id=21320 Signed-off-by: Mark Wielaard --- diff --git a/src/ChangeLog b/src/ChangeLog index d285e068b..e022503b5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2017-03-28 Mark Wielaard + + * elflint (check_group): Don't check if there is no flag word. + 2017-03-27 Mark Wielaard * elflint.c (check_elf_header): Sanity check phnum and shnum. diff --git a/src/elflint.c b/src/elflint.c index 6c83a773e..e0c65b6a5 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)