x86: Update ld-elf/linkinfo1[ab].d for Solaris/x86
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Jan 2018 00:23:33 +0000 (16:23 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Jan 2018 00:23:51 +0000 (16:23 -0800)
Update ld-elf/linkinfo1[ab].d to accommodate slightly different PLT/GOT
order/layout for Solaris/x86 targets.

* testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
PLT/GOT order/layout for Solaris/x86 targets.
* testsuite/ld-elf/linkinfo1b.d: Likewise.

ld/ChangeLog
ld/testsuite/ld-elf/linkinfo1a.d
ld/testsuite/ld-elf/linkinfo1b.d

index 6b6886e871b418ff80e457d067930877fdec1f7d..dc56d0c4bfe4b13062fa752c665a107d97547285 100644 (file)
@@ -1,3 +1,9 @@
+2018-01-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
+       PLT/GOT order/layout for Solaris/x86 targets.
+       * testsuite/ld-elf/linkinfo1b.d: Likewise.
+
 2018-01-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/22728
index 1aeaf00f86ad8f07c1c54e1a55fc8f9996313f2a..63c4dc796a4de59f2c0ed6e37160e742a45dc749 100644 (file)
@@ -4,7 +4,7 @@
 #target: x86_64-* i?86-*
 
 #...
-  \[[ 0-9]+\] \.rel[a]?\.plt[ \t]+REL[A]?[ \t][ \t0-9a-f]+AI[ \t]+[0-9a-f]+[ \t]+9[ \t]+[0-9a-f]+
+  \[[ 0-9]+\] \.rel[a]?\.plt[ \t]+REL[A]?[ \t][ \t0-9a-f]+AI[ \t]+[0-9a-f]+[ \t]+(9|10)[ \t]+[0-9a-f]+
 #...
-  \[[ 9\] \.got.plt[ \t]+PROGBITS?[ \t][ \t0-9a-f]+WA[ \t]+[0-9a-f]+[ \t]+0[ \t]+[0-9a-f]+
+  \[[[ ]*(9|10)\] \.got(|.plt)[ \t]+PROGBITS?[ \t][ \t0-9a-f]+WA[ \t]+[0-9a-f]+[ \t]+0[ \t]+[0-9a-f]+
 #pass
index f8e3bd033aef52ea7d6cb75b12aed5f8a4037830..738850e9e3e8969e555beb46dc065adb66679182 100644 (file)
@@ -5,7 +5,7 @@
 #target: x86_64-* i?86-*
 
 #...
-  \[[ 0-9]+\] \.rel[a]?\.plt[ \t]+REL[A]?[ \t][ \t0-9a-f]+AI[ \t]+[0-9a-f]+[ \t]+9[ \t]+[0-9a-f]+
+  \[[ 0-9]+\] \.rel[a]?\.plt[ \t]+REL[A]?[ \t][ \t0-9a-f]+AI[ \t]+[0-9a-f]+[ \t]+(9|10)[ \t]+[0-9a-f]+
 #...
-  \[[ 9\] \.got.plt[ \t]+PROGBITS?[ \t][ \t0-9a-f]+WA[ \t]+[0-9a-f]+[ \t]+0[ \t]+[0-9a-f]+
+  \[[[ ]*(9|10)\] \.got(|.plt)[ \t]+PROGBITS?[ \t][ \t0-9a-f]+WA[ \t]+[0-9a-f]+[ \t]+0[ \t]+[0-9a-f]+
 #pass