mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
7d24e6a65a
* elf32-arm.c (cortex_a8_erratum_scan): If the stub is a Thumb branch to a PLT entry, redirect it to the PLT's Thumb entry point. ld/testsuite/ * ld-arm/cortex-a8-fix-b-plt.s, ld-arm/cortex-a8-fix-b-plt.d, ld-arm/cortex-a8-fix-bcc-plt.s, ld-arm/cortex-a8-fix-bcc-plt.d, ld-arm/cortex-a8-fix-bl-plt.s, ld-arm/cortex-a8-fix-bl-plt.d, ld-arm/cortex-a8-fix-blx-plt.s, ld-arm/cortex-a8-fix-blx-plt.d, ld-arm/cortex-a8-fix-plt.ld: New tests. * ld-arm/arm-elf.exp: Run them.
11 lines
162 B
ArmAsm
11 lines
162 B
ArmAsm
.syntax unified
|
|
.globl foo
|
|
.type foo,%function
|
|
.thumb_func
|
|
foo:
|
|
nop @ 0x00
|
|
movw r0,#0 @ 0x02
|
|
movw r0,#0 @ 0x06
|
|
movw r0,#0 @ 0x0a
|
|
bl bar(PLT) @ 0x0e
|