mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
5834f36d93
Don't insert a second stub if the target is already compatible with an indirect branch.
54 lines
606 B
ArmAsm
54 lines
606 B
ArmAsm
.text
|
|
.global _start
|
|
.type _start, %function
|
|
_start:
|
|
bl foo
|
|
bl bar
|
|
bl baz
|
|
baz:
|
|
nop
|
|
baz_bti_:
|
|
bti
|
|
baz_bti_c:
|
|
bti c
|
|
baz_bti_j:
|
|
bti j
|
|
baz_bti_jc:
|
|
bti jc
|
|
baz_paciasp:
|
|
paciasp
|
|
baz_pacibsp:
|
|
pacibsp
|
|
|
|
.section .far,"ax",@progbits
|
|
.global foo
|
|
.type foo, %function
|
|
foo:
|
|
bl baz
|
|
bl baz_bti_
|
|
bl baz_bti_c
|
|
bl baz_bti_j
|
|
bl baz_bti_jc
|
|
bl baz_paciasp
|
|
bl baz_pacibsp
|
|
bar:
|
|
b foo
|
|
b baz
|
|
b baz_bti_
|
|
b baz_bti_c
|
|
b baz_bti_j
|
|
b baz_bti_jc
|
|
b baz_paciasp
|
|
b baz_pacibsp
|
|
|
|
.section .note.gnu.property,"a"
|
|
.align 3
|
|
.word 4
|
|
.word 16
|
|
.word 5
|
|
.string "GNU"
|
|
.word 0xc0000000
|
|
.word 4
|
|
.word 1
|
|
.align 3
|