[binutils-gdb] readelf group errors/warnings
Alan Modra
amodra@sourceware.org
Mon May 27 04:59:00 GMT 2019
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=61dd8e19a8b43037125d4a767f27e98e9181521b
commit 61dd8e19a8b43037125d4a767f27e98e9181521b
Author: Alan Modra <amodra@gmail.com>
Date: Mon May 27 10:37:37 2019 +0930
readelf group errors/warnings
I noticed that one of the readelf errors stopped processing of further
group sections. This patch makes readelf continue on to other groups,
like it does with the other errors.
* readelf.c (process_section_groups): Continue processing groups
when sh_entsize exceeds group size.
Diff:
---
binutils/ChangeLog | 5 +++++
binutils/readelf.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index ef9fa5a..18ec182 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2019-05-27 Alan Modra <amodra@gmail.com>
+
+ * readelf.c (process_section_groups): Continue processing groups
+ when sh_entsize exceeds group size.
+
2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
* readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 23ffd86..424624e 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -6875,7 +6875,7 @@ process_section_groups (Filedata * filedata)
printable_section_name (filedata, section),
(unsigned long) section->sh_entsize,
(unsigned long) section->sh_size);
- break;
+ continue;
}
start = (unsigned char *) get_data (NULL, filedata, section->sh_offset,
More information about the Binutils-cvs
mailing list