summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog4
-rw-r--r--src/elflint.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d285e068..e022503b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2017-03-28 Mark Wielaard <[email protected]>
+
+ * elflint (check_group): Don't check if there is no flag word.
+
2017-03-27 Mark Wielaard <[email protected]>
* elflint.c (check_elf_header): Sanity check phnum and shnum.
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)