diff options
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-arm/farcall-group.s')
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-arm/farcall-group.s | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-arm/farcall-group.s b/binutils-2.21/ld/testsuite/ld-arm/farcall-group.s new file mode 100644 index 0000000..0ede36d --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-arm/farcall-group.s @@ -0,0 +1,44 @@ +@ Test to ensure that ARM calls exceeding 32Mb generate stubs. + + .global _start + .syntax unified + +@ We will place the section .text at 0x1000. + + .text + +_start: + bl bar + bl bar2 + + +@ We will place the section .foo at 0x2003020. + + .section .foo, "xa" + + .global bar + .thumb_func +bar: + bx lr + + .arm + .global bar2 + .type bar2, %function +bar2: + bx lr + + .global bar3 + .type bar3, %function +bar3: + bx lr + + .global bar4 + .thumb_func +bar4: + bx lr + + .global bar5 + .type bar5, %function +bar5: + bx lr + |