binutils-gdb/ld/testsuite/ld-arm/farcall-thumb2-purecode.s
Andre Vieria d5a67c0290 [ARM] Purecode compatible long branch veneer for M-profile targets with MOVW.
2016-07-05  Andre Vieria  <andre.simoesdiasvieira@arm.com>

	* elf32-arm.c (THUMB32_MOVT): New veneer macro.
	(THUMB32_MOVW): Likewise.
	(elf32_arm_stub_long_branch_thumb2_only_pure): New.
	(DEF_STUBS): Define long_branch_thumb2_only_pure.
	(arm_stub_is_thumb): Add new veneer stub.
	(arm_type_of_stub): Use new veneer.
	(arm_stub_required_alignment): Add new veneer.

2016-07-05  Andre Vieria  <andre.simoesdiasvieira@arm.com>

	* testsuite/ld-arm/farcall-thumb2-purecode.d: New test result.
	* testsuite/ld-arm/farcall-thumb2-purecode.s: New test.
	* testsuite/ld-arm/arm-elf.exp: Run it.
2016-07-05 11:39:06 +01:00

20 lines
308 B
ArmAsm

@ Test to ensure that a purecode Thumb2 call exceeding 4Mb generates a stub.
.global _start
.syntax unified
.arch armv7-m
.thumb
.thumb_func
@ We will place the section .text at 0x1000.
.text
bar:
bx lr
@ We will place the section .foo at 0x02001014.
.section .foo, "0x20000006"
_start:
bl bar