aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/arm_farcall_arm_thumb.s
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-11-02 19:11:48 +0000
committerIan Lance Taylor <ian@airs.com>2011-11-02 19:11:48 +0000
commitcd6eab1c16716e4e52828c0411f1dadfc14334cc (patch)
treedb8c4e22d95a21e4b9c70f6a189c1d229061bcbe /gold/testsuite/arm_farcall_arm_thumb.s
parentf179e16214758688265c2a0798bb2bebc0cd2770 (diff)
downloadgdb-cd6eab1c16716e4e52828c0411f1dadfc14334cc.zip
gdb-cd6eab1c16716e4e52828c0411f1dadfc14334cc.tar.gz
gdb-cd6eab1c16716e4e52828c0411f1dadfc14334cc.tar.bz2
* arm.cc (Target_arm::Target_arm): Remove initialisation of
may_use_blx_. (Target_arm::may_use_blx): Remove method. (Target_arm::set_may_use_blx): Likewise. (Target_arm::may_use_v4t_interworking): New method. (Target_arm::may_use_v5t_interworking): Likewise. (Target_arm::may_use_blx_): Remove member variable. (Arm_relocate_functions::arm_branch_common): Check for v5T interworking. (Arm_relocate_functions::thumb_branch_common): Likewise. (Reloc_stub::stub_type_for_reloc): Likewise. (Target_arm::do_finalize_sections): Correct interworking checks. * testsuite/Makefile.am: Add new tests. * testsuite/Makefile.in: Regenerate. * testsuite/arm_farcall_arm_arm.s: New test. * testsuite/arm_farcall_arm_arm.sh: Likewise. * testsuite/arm_farcall_arm_thumb.s: Likewise. * testsuite/arm_farcall_arm_thumb.sh: Likewise. * testsuite/arm_farcall_thumb_arm.s: Likewise. * testsuite/arm_farcall_thumb_arm.sh: Likewise. * testsuite/arm_farcall_thumb_thumb.s: Likewise. * testsuite/arm_farcall_thumb_thumb.sh: Likewise.
Diffstat (limited to 'gold/testsuite/arm_farcall_arm_thumb.s')
-rw-r--r--gold/testsuite/arm_farcall_arm_thumb.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/gold/testsuite/arm_farcall_arm_thumb.s b/gold/testsuite/arm_farcall_arm_thumb.s
new file mode 100644
index 0000000..c69f31c
--- /dev/null
+++ b/gold/testsuite/arm_farcall_arm_thumb.s
@@ -0,0 +1,20 @@
+@ Test to ensure that a ARM to Thumb call exceeding 32Mb generates a stub.
+
+ .global _start
+ .global bar
+ .syntax unified
+
+@ We will place the section .text at 0x1000.
+
+ .text
+
+_start:
+ bl bar
+
+@ We will place the section .foo at 0x2001010.
+
+ .section .foo, "xa"
+ .thumb_func
+bar:
+ bx lr
+