pr23900-1.d: Also check PT_GNU_PROPERTY program header
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 21 Jan 2020 13:43:59 +0000 (05:43 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 21 Jan 2020 13:43:59 +0000 (05:43 -0800)
Also pass -l to readelf to check PT_GNU_PROPERTY program header.

PR ld/23900
* testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.

ld/ChangeLog
ld/testsuite/ld-elf/pr23900-1.d

index bcd6d633195a5440a157d0a1d44a3421c164190f..a686c187cbff84d8c4764a5cc26c7fdd587c3d82 100644 (file)
@@ -1,3 +1,7 @@
+2020-01-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
+
 2020-01-20  Nick Clifton  <nickc@redhat.com>
 
        * po/pt_BR.po: Updated Brazilian Portuguese translation.
index 2079c93f25e747d3bd75509d6ca6ec7c5c3f749f..8f8c7ccf03727b05555d87fd29c9f36e31be8d31 100644 (file)
@@ -1,7 +1,15 @@
 #ld:
-#readelf: --notes --wide
+#readelf: --notes --wide -l
 #target: *-*-linux* *-*-gnu* *-*-nacl*
 
+#...
+  GNU_PROPERTY .*
+#...
+ +[0-9]+ +\.note\.gnu\.property 
+#...
+ +[0-9]+ +\.note\.gnu\.property 
+#...
+ +[0-9]+ +\.note\.gnu\.property 
 #...
 Displaying notes found in: \.note\.gnu\.property
 [      ]+Owner[        ]+Data size[    ]+Description