x86: Update IFUNC tests for -z separate-code
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Feb 2018 17:20:07 +0000 (09:20 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Feb 2018 17:20:21 +0000 (09:20 -0800)
"-z separate-code" generates different PLT addresses.  Update these tests
to accept any PLT addresses.

* testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
* testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
* testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.

ld/ChangeLog
ld/testsuite/ld-ifunc/ifunc-1-local-x86.d
ld/testsuite/ld-ifunc/ifunc-1-x86.d
ld/testsuite/ld-ifunc/ifunc-3a-x86.d

index fc64ea2d9fd4e69808e31ec897b37f68e41696ce..b4ab08365216a5da6eb43f54c7e714c078bc8614 100644 (file)
@@ -1,3 +1,9 @@
+2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
+       * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
+       * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
+
 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-i386/ibt-plt-1.d: Add -z noseparate-code.
index a6a2c204e50586de7d33afd1d1c350bbd72ef75c..2459add9d7c6bb2b2cccae44675fbaa4b22614df 100644 (file)
@@ -4,5 +4,5 @@
 #map: ifunc-1-local-x86.map
 
 #...
-[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*(\+0x160|\+0x170|\+0x1e0|)@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*\+0x[0-9a-f]+@plt>
 #pass
index 1471dfea1ffdf699133e34ef66770573739de187..54fcac31a8f56a1f3e2a74469a33173192588b04 100644 (file)
@@ -4,5 +4,5 @@
 #map: ifunc-1-x86.map
 
 #...
-[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*(\+0x170|\+0x190|\+0x210|)@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*\+0x[0-9a-f]+@plt>
 #pass
index 3c2a9598c7b993b29bdf9675a488e4dbe29dd424..400d07af5bb4c8114729c1862ef8880bad446021 100644 (file)
@@ -4,5 +4,5 @@
 #target: x86_64-*-* i?86-*-*
 
 #...
-[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*(\+0x190|\+0x1a0|\+0x1b0|\+0x220|)@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*\+0x[0-9a-f]+@plt>
 #pass