ld/testsuite/ld-aarch64: Fixup IFUNC tests to work on all targets
authorWill Newton <will.newton@linaro.org>
Tue, 10 Dec 2013 22:02:05 +0000 (22:02 +0000)
committerWill Newton <will.newton@linaro.org>
Wed, 11 Dec 2013 21:05:36 +0000 (21:05 +0000)
Make the ifunc-21 and ifunc-22 tests more generic to support
aarch64_be and ELF targets.

ld/testsuite/ChangeLog:

2013-12-11  Will Newton  <will.newton@linaro.org>

* ld-aarch64/ifunc-21.d: Make test more generic to support
aarch64_be and ELF targets.
* ld-aarch64/ifunc-22.d: Likewise.

ld/testsuite/ChangeLog
ld/testsuite/ld-aarch64/ifunc-21.d
ld/testsuite/ld-aarch64/ifunc-22.d

index d00d1704f2b21f0ca744ac701611806b04d97394..2f64fce2b54f2fd52e10d4f5c5a19c073ccaf5b1 100644 (file)
@@ -1,3 +1,9 @@
+2013-12-11  Will Newton  <will.newton@linaro.org>
+
+       * ld-aarch64/ifunc-21.d: Make test more generic to support
+       aarch64_be and ELF targets.
+       * ld-aarch64/ifunc-22.d: Likewise.
+
 2013-12-11  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ld-elf/shared.exp (build_tests): Add libneeded2a.so,
index fa139b2b5fa413c5d48aa3d6f7662935903aeb76..9ea01e6b6e52b2fc86ebc15d03b0685de745372c 100644 (file)
@@ -8,24 +8,19 @@
 .*:     file format elf64-(little|big)aarch64
 
 Contents of section .text:
02a0 .*
[0-9a-f]+ .*
 Contents of section .got.plt:
103a8 0+ 0+ 0+ 0+  .*
103b8 0+ 0+ [0-9a-f]+ 0+  .*
[0-9a-f]+ 0+ 0+ 0+ 0+  .*
(103b8|10408) 0+ 0+ [0-9a-f]+ [0-9a-f]+  .*
 
 Disassembly of section .text:
 
-0+2a0 <ifunc>:
2a0:  d65f03c0        ret
+.* <ifunc>:
.*:   d65f03c0        ret
 
-0+2a4 <bar>:
2a4:  90000080        adrp    x0, 10000 <.*>
2a8:  f941e000        ldr     x0, \[x0,#960\]
2ac:  d65f03c0        ret
+.* <bar>:
.*:   90000080        adrp    x0, 10000 <.*>
.*:   .*      ldr     x0, \[x0,#(960|1040)\]
.*:   d65f03c0        ret
 
-Disassembly of section .got.plt:
-
-.*:
-.*
-.*
-.*
+#pass
\ No newline at end of file
index f28b039739de0b3c0f5386675f05398eedafda91..7f0978d9a1be5566673b8d0676a4034b0896f366 100644 (file)
@@ -8,4 +8,4 @@
 .*:     file format elf64-(little|big)aarch64
 
 Contents of section \.got:
- 4100f0 00000000 00000000 d0004000 00000000  ..........@.....
+ [0-9a-f]+ 00000000 00000000 (d0004000|18004000|00000000) (00000000|004000d0|00400018) .*