Browse Source

pr23900-1.d: Adjusted

Linux program headers may look like

Section to Segment mapping:
  Segment Sections...
   00     .note.gnu.property .text
   01     .note.gnu.property
   02     .note.gnu.property

or

Section to Segment mapping:
  Segment Sections...
   00     .note.gnu.property
   01     .text
   02     .note.gnu.property
   03     .note.gnu.property

Update pr23900-1.d to accept both.

	* testsuite/ld-elf/pr23900-1.d: Adjusted.
binutils-2_35-branch
H.J. Lu 7 years ago
parent
commit
1e1613647f
  1. 4
      ld/ChangeLog
  2. 2
      ld/testsuite/ld-elf/pr23900-1.d

4
ld/ChangeLog

@ -1,3 +1,7 @@
2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-elf/pr23900-1.d: Adjusted.
2020-01-21 H.J. Lu <hongjiu.lu@intel.com> 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf. * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.

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

@ -5,7 +5,7 @@
#... #...
GNU_PROPERTY .* GNU_PROPERTY .*
#... #...
+[0-9]+ +\.note\.gnu\.property +[0-9]+ +.*\.note\.gnu\.property.*
#... #...
+[0-9]+ +\.note\.gnu\.property +[0-9]+ +\.note\.gnu\.property
#... #...

Loading…
Cancel
Save