1# arm_thm_jump11.s 2# Test R_ARM_THM_JUMP11 relocations just within the branch range limits. 3 .syntax unified 4 .arch armv5te 5 6 .section .text.pre,"x" 7 8# Add padding so that target is just in branch range. 9 .space 8 10 11 .global _backward_target 12 .code 16 13 .thumb_func 14 .type _backword_target, %function 15_backward_target: 16 bx lr 17 .size _backward_target, .-_backward_target 18 19 .text 20 21# Define _start so that linker does not complain. 22 .global _start 23 .code 32 24 .align 2 25 .type _start, %function 26_start: 27 bx lr 28 .size _start, .-_start 29 30 .global _backward_test 31 .code 16 32 .thumb_func 33 .type _backward_test, %function 34_backward_test: 35 b.n _backward_target 36 .size _backward_test, .-_backward_test 37 38 .global _forward_test 39 .code 16 40 .thumb_func 41 .type _forward_test, %function 42_forward_test: 43 b.n _forward_target 44 .size _forward_test, .-_forward_test 45 46 .section .text.post,"x" 47 48# Add padding so that target is just in branch range. 49 .space 8 50 51 .global _forward_target 52 .code 16 53 .thumb_func 54 .type _forward_target, %function 55_forward_target: 56 bx lr 57 .size _forward_target, .-_forward_target 58