aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorWill Newton <will.newton@linaro.org>2013-12-10 22:02:05 +0000
committerWill Newton <will.newton@linaro.org>2013-12-11 21:05:36 +0000
commitd3b76a45a940dfc962938cf1092a18c751087a5c (patch)
treeac6a3d1c35c407e8b0ffcfff05aeb871f3c8676f /ld/testsuite
parent2b8c06a34c0ad84682800d62f5620722039b1108 (diff)
downloadfsf-binutils-gdb-d3b76a45a940dfc962938cf1092a18c751087a5c.zip
fsf-binutils-gdb-d3b76a45a940dfc962938cf1092a18c751087a5c.tar.gz
fsf-binutils-gdb-d3b76a45a940dfc962938cf1092a18c751087a5c.tar.bz2
ld/testsuite/ld-aarch64: Fixup IFUNC tests to work on all targets
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.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-aarch64/ifunc-21.d25
-rw-r--r--ld/testsuite/ld-aarch64/ifunc-22.d2
3 files changed, 17 insertions, 16 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index d00d170..2f64fce 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -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,
diff --git a/ld/testsuite/ld-aarch64/ifunc-21.d b/ld/testsuite/ld-aarch64/ifunc-21.d
index fa139b2..9ea01e6 100644
--- a/ld/testsuite/ld-aarch64/ifunc-21.d
+++ b/ld/testsuite/ld-aarch64/ifunc-21.d
@@ -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
diff --git a/ld/testsuite/ld-aarch64/ifunc-22.d b/ld/testsuite/ld-aarch64/ifunc-22.d
index f28b039..7f0978d 100644
--- a/ld/testsuite/ld-aarch64/ifunc-22.d
+++ b/ld/testsuite/ld-aarch64/ifunc-22.d
@@ -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) .*