old-cross-binutils/ld/testsuite/ld-arm/thumb-rel32.s
Paul Brook a8bc6c780e 2006-05-02 Paul Brook <paul@codesourcery.com>
bfd/
	* elf32-arm.c (elf32_arm_final_link_relocate): Set thumb funciton bit
	for R_ARM_REL32.
gas/
	* config/tc-arm.c (arm_optimize_expr): New function.
	* config/tc-arm.h (md_optimize_expr): Define
	(arm_optimize_expr): Add prototype.
	(TC_FORCE_RELOCATION_SUB_SAME): Define.
ld/testsuite/
	* ld-arm/arm-elf.exp: Add thumb-rel32.
	* ld-arm/thumb-rel32.d: New test.
	* ld-arm/thumb-rel32.s: New test.
2006-05-02 13:09:18 +00:00

18 lines
307 B
ArmAsm

.text
.arch armv4t
.global _start
.type _start, %function
.thumb_func
_start:
.word bar - .
.word _start - .
.byte 0
.4byte (_start - .) + 1
.byte 0, 0, 0
.section .after, "ax", %progbits
.global bar
.type bar, %function
.thumb_func
bar:
.word 0
.ident "GCC: (GNU) 4.1.0 (CodeSourcery ARM)"