#name: Inter-section branch relocations #This test is only valid on EABI based ports. #target: *-*-*eabi* *-*-nacl* #as: -march=armv5t #objdump: -rd #stderr: branch-reloc.l # Test the generation of relocation for inter-section branches .*: +file format.*arm.* Disassembly of section .text: 00000000 : 0: e1a00000 nop ; \(mov r0, r0\) 00000004 : 4: ebfffffe bl 46 4: R_ARM_CALL thumb_glob_sym1 8: ebfffffe bl 100 8: R_ARM_CALL thumb_glob_sym2 c: fa00000c blx 44 10: ebfffffe bl 4 10: R_ARM_CALL arm_glob_sym1 14: ebfffffe bl 13c 14: R_ARM_CALL arm_glob_sym2 18: eb000007 bl 3c 1c: fafffffe blx 46 1c: R_ARM_CALL thumb_glob_sym1 20: fafffffe blx 100 20: R_ARM_CALL thumb_glob_sym2 24: fa000006 blx 44 28: fafffffe blx 4 28: R_ARM_CALL arm_glob_sym1 2c: fafffffe blx 13c 2c: R_ARM_CALL arm_glob_sym2 30: eb000001 bl 3c 34: e1a00000 nop ; \(mov r0, r0\) 38: e12fff1e bx lr 0000003c : 3c: e1a00000 nop ; \(mov r0, r0\) 40: e12fff1e bx lr 00000044 : 44: 4770 bx lr 00000046 : 46: 4770 bx lr Disassembly of section foo: 00000000 : ... 00000100 : 100: f7ff fffe bl 4 100: R_ARM_THM_CALL arm_glob_sym1 104: f7ff fffe bl 13c 104: R_ARM_THM_CALL arm_glob_sym2 108: f000 e816 blx 138 10c: f7ff fffe bl 46 10c: R_ARM_THM_CALL thumb_glob_sym1 110: f7ff fffe bl 100 110: R_ARM_THM_CALL thumb_glob_sym2 114: f000 f80e bl 134 118: f7ff effe blx 4 118: R_ARM_THM_CALL arm_glob_sym1 11c: f7ff effe blx 13c 11c: R_ARM_THM_CALL arm_glob_sym2 120: f000 e80a blx 138 124: f7ff effe blx 46 124: R_ARM_THM_CALL thumb_glob_sym1 128: f7ff effe blx 100 128: R_ARM_THM_CALL thumb_glob_sym2 12c: f000 f802 bl 134 130: 46c0 nop ; \(mov r8, r8\) 132: 4770 bx lr 00000134 : 134: 46c0 nop ; \(mov r8, r8\) 136: 4770 bx lr 00000138 : 138: e12fff1e bx lr 0000013c : 13c: e12fff1e bx lr