mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
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.
10 lines
181 B
ArmAsm
10 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:
|