mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
07f9ddfeba
2015-08-11 Jiong Wang <jiong.wang@arm.com> bfd/ PR ld/18668 * elfnn-aarch64.c (aarch64_type_of_stub): Update destination for calls go through plt stub. (elfNN_aarch64_final_link_relocate): Adjust code logic for CALL26, JUMP26 relocation to support inserting veneer for call to plt stub. ld/testsuite/ * ld-aarch64/farcall-b-gsym.s: New test. * ld-aarch64/farcall-b-plt.s: Likewise. * ld-aarch64/farcall-bl-plt.s: Likewise. * ld-aarch64/farcall-b-gsym.d: New expect file. * ld-aarch64/farcall-b-plt.d: Likewise. * ld-aarch64/farcall-bl-plt.d: Likewise.
13 lines
202 B
ArmAsm
13 lines
202 B
ArmAsm
.global _start
|
|
.global foo
|
|
.type foo, @function
|
|
.text
|
|
|
|
_start:
|
|
# ((1 << 25) - 1) << 2
|
|
# call26 relocation out of range to plt stub,
|
|
# we need long branch veneer.
|
|
.skip 134217724, 0
|
|
bl foo
|
|
ret
|