This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] [AArch64] Commit missing testcases


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b261b4db940297f254280ef57589879341d09435

commit b261b4db940297f254280ef57589879341d09435
Author: Jiong Wang <jiong.wang@arm.com>
Date:   Tue Aug 11 22:12:08 2015 +0100

    [AArch64] Commit missing testcases

Diff:
---
 ld/testsuite/ld-aarch64/farcall-b-defsym.d  | 18 ++++++++++++++++++
 ld/testsuite/ld-aarch64/farcall-b-defsym.s  | 10 ++++++++++
 ld/testsuite/ld-aarch64/farcall-bl-defsym.d | 18 ++++++++++++++++++
 ld/testsuite/ld-aarch64/farcall-bl-defsym.s | 10 ++++++++++
 4 files changed, 56 insertions(+)

diff --git a/ld/testsuite/ld-aarch64/farcall-b-defsym.d b/ld/testsuite/ld-aarch64/farcall-b-defsym.d
new file mode 100644
index 0000000..c3e1602
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/farcall-b-defsym.d
@@ -0,0 +1,18 @@
+#name: aarch64-farcall-b-defsym
+#source: farcall-b-defsym.s
+#as:
+#ld: -Ttext 0x1000 --defsym=bar=0x8001000
+#objdump: -dr
+#...
+
+Disassembly of section .text:
+
+0000000000001000 <_start>:
+ +1000:	14000003 	b	100c <__bar_veneer>
+ +1004:	d65f03c0 	ret
+[ \t]+1008:[ \t]+14000007[ \t]+b[ \t]+1024 <__bar_veneer\+0x18>
+000000000000100c <__bar_veneer>:
+    100c:	90040010 	adrp	x16, 8001000 <bar>
+    1010:	91000210 	add	x16, x16, #0x0
+    1014:	d61f0200 	br	x16
+	...
diff --git a/ld/testsuite/ld-aarch64/farcall-b-defsym.s b/ld/testsuite/ld-aarch64/farcall-b-defsym.s
new file mode 100644
index 0000000..3eec50c
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/farcall-b-defsym.s
@@ -0,0 +1,10 @@
+	.global _start
+	.global bar
+
+# We will place the section .text at 0x1000.
+
+	.text
+
+_start:
+	b bar
+	ret
diff --git a/ld/testsuite/ld-aarch64/farcall-bl-defsym.d b/ld/testsuite/ld-aarch64/farcall-bl-defsym.d
new file mode 100644
index 0000000..68332bf
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/farcall-bl-defsym.d
@@ -0,0 +1,18 @@
+#name: aarch64-farcall-bl-defsym
+#source: farcall-bl-defsym.s
+#as:
+#ld: -Ttext 0x1000 --defsym=bar=0x8001000
+#objdump: -dr
+#...
+
+Disassembly of section .text:
+
+0000000000001000 <_start>:
+ +1000:	94000003 	bl	100c <__bar_veneer>
+ +1004:	d65f03c0 	ret
+[ \t]+1008:[ \t]+14000007[ \t]+b[ \t]+1024 <__bar_veneer\+0x18>
+000000000000100c <__bar_veneer>:
+    100c:	90040010 	adrp	x16, 8001000 <bar>
+    1010:	91000210 	add	x16, x16, #0x0
+    1014:	d61f0200 	br	x16
+	...
diff --git a/ld/testsuite/ld-aarch64/farcall-bl-defsym.s b/ld/testsuite/ld-aarch64/farcall-bl-defsym.s
new file mode 100644
index 0000000..c525db6
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/farcall-bl-defsym.s
@@ -0,0 +1,10 @@
+	.global _start
+	.global bar
+
+# We will place the section .text at 0x1000.
+
+	.text
+
+_start:
+	bl bar
+	ret


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]