old-cross-binutils/ld/testsuite/ld-arm/arm-target2.s
Nathan Sidwell 9a6f4e976d gas/
* config/tc-arm.c (md_apply_fix <BFD_RELOC_ARM_TARGET2>): Write
	the offset for REL targets here.

	gas/testsuite/
	* gas/arm/target-reloc-1.s: New.
	* gas/arm/target-reloc-1.d: New.

	ld/testsuite/
	* ld-arm/arm-target2.s: Add addend cases.
	* ld-arm/arm-target2-rel.d: Adjust.
	* ld-arm/arm-target2-abs.d: Adjust.
	* ld-arm/arm-target2-got-rel.d: Adjust.
2009-07-16 13:18:52 +00:00

9 lines
181 B
ArmAsm

# Test the R_ARM_TARGET2 relocation
.text
.global _start
_start:
.word foo(target2)
.word foo+0x1234(target2)
.word foo+0xcdef0000(target2)
.word foo+0x76543210(target2)
foo: