readelf: Prune gaps warning in build notes
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 20 Nov 2018 14:45:28 +0000 (06:45 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 20 Nov 2018 14:46:03 +0000 (06:46 -0800)
Since some object files may not have build notes, it is normal to have
gaps in build notes.

PR binutils/23898
* testsuite/lib/binutils-common.exp (prune_warnings_extra):
Prune gaps in build notes.

binutils/ChangeLog
binutils/testsuite/lib/binutils-common.exp

index 0d980b7d189b70a74a29fe4d99747320b99652e7..ed80459dc19c018a152ea1dc8102af5afdb92c6a 100644 (file)
@@ -1,3 +1,9 @@
+2018-11-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/23898
+       * testsuite/lib/binutils-common.exp (prune_warnings_extra):
+       Prune gaps in build notes.
+
 2018-11-13  Francois H. Theron <francois.theron@netronome.com>
 
        * testsuite/binutils-all/nfp/test1.d: Test for swapped operand crc[].
index f1a153193cba44866c2d551b59f3fa5a205c21b2..bbbbfbe8adaeb2337f997d15e226fc28f0eb83c1 100644 (file)
@@ -442,6 +442,8 @@ proc prune_warnings_extra { text } {
        # The "\\1" is to try to preserve a "\n" but only if necessary.
        regsub -all "(^|\n)(\[^\n\]*: warning:\[^\n\]*unsupported GNU_PROPERTY_TYPE\[^\n\]*\n?)+" $text "\\1" text
     }
+    # PR binutils/23898: It is OK to have gaps in build notes.
+    regsub -all "(^|\n)(\[^\n\]*: Warning: Gap in build notes detected from\[^\n\]*\n?)+" $text "\\1" text
     return $text
 }
 
This page took 0.026263 seconds and 4 git commands to generate.