revert previous delta
authorNick Clifton <nickc@redhat.com>
Thu, 13 May 2021 13:33:39 +0000 (14:33 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 13 May 2021 13:33:39 +0000 (14:33 +0100)
binutils/ChangeLog
binutils/dwarf.c

index 42efebf54e2d2dc847ce63d48892fe1d0be782eb..85d21ebfa6b2e5fb90100ac7475b021eedbb815d 100644 (file)
@@ -1,9 +1,3 @@
-2021-05-13  Nick Clifton  <nickc@redhat.com>
-
-       PR 27861
-       * dwarf.c (display_debug_str_offsets): Warn if the length field is
-       larger than the amount of data remaining in the section.
-
 2021-05-13  Alan Modra  <amodra@gmail.com>
 
        PR 27861
index 20ffe4b52ccb0967ac8bb91292e4e3b75154d753..2794a15a1d3948ed151a3a18137777f4fb6b3dfd 100644 (file)
@@ -7509,13 +7509,6 @@ display_debug_str_offsets (struct dwarf_section *section,
          printf (_("    Length: %#lx\n"), (unsigned long) length);
          printf (_("    Version: %#lx\n"), (unsigned long) version);
          printf (_("       Index   Offset [String]\n"));
-
-         if (entries_end > end)
-           {
-             warn (_("Length value (0x%s) > data remaining in the section (0x%lx)\n"),
-                   dwarf_vmatoa ("x", length), (long)(end - curr));
-             entries_end = end;
-           }     
        }
 
       for (idx = 0; curr < entries_end; idx++)