diff options
| author | Mark Wielaard <[email protected]> | 2017-03-28 13:33:03 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2017-04-04 00:28:03 +0200 |
| commit | fb6709f1a41b58a9557ea45b7f53ae678c660b21 (patch) | |
| tree | 390cfafbae3de74e198dbf35f0ae375a9fe977d1 | |
| parent | 4314716cd498bb51639db717bd7ce6182de33322 (diff) | |
elflint: Don't check section group without flags word.
https://sourceware.org/bugzilla/show_bug.cgi?id=21320
Signed-off-by: Mark Wielaard <[email protected]>
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/elflint.c | 5 |
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) |
