9a6f4e976d
* 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.
9 lines
181 B
ArmAsm
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:
|