readelf group errors/warnings
authorAlan Modra <amodra@gmail.com>
Mon, 27 May 2019 01:07:37 +0000 (10:37 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 27 May 2019 04:29:32 +0000 (13:59 +0930)
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.

binutils/ChangeLog
binutils/readelf.c

index ef9fa5ac712a2c42124d626abf83a65cc71f09d1..18ec1826c16997308f6d8ac752f9fa9517219cc0 100644 (file)
@@ -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.
index 23ffd8660031b233a42a98a9e9b3e2aff4b052ae..424624e0e4d705bb494edb0123c6f3994be21fd0 100644 (file)
@@ -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,