mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
59029f57eb
2018-04-25 Christophe Lyon <christophe.lyon@st.com> Mickaël Guêné <mickael.guene@st.com> bfd/ * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New. (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case. (elf32_arm_populate_plt_entry): Likewise. (elf32_arm_output_plt_map_1): Likewise. (elf32_arm_output_arch_local_syms): Likewise. ld/testsuite/ * arm-elf.exp: Execute the new FDPIC Thumb-only tests. * fdpic-main-m.d: New test. * fdpic-main-m.s: New. * fdpic-main-m.sym: New. * fdpic-shared-m.d: New test. * fdpic-shared-m.s: New. * fdpic-shared-m.sym: New.
53 lines
1.1 KiB
ArmAsm
53 lines
1.1 KiB
ArmAsm
.arch armv7-m
|
|
.eabi_attribute 20, 1
|
|
.eabi_attribute 21, 1
|
|
.eabi_attribute 23, 3
|
|
.eabi_attribute 24, 1
|
|
.eabi_attribute 25, 1
|
|
.eabi_attribute 26, 2
|
|
.eabi_attribute 30, 2
|
|
.eabi_attribute 34, 1
|
|
.eabi_attribute 18, 4
|
|
.file "shared.c"
|
|
.text
|
|
.align 2
|
|
.global my_shared_func1
|
|
.syntax unified
|
|
.thumb
|
|
.fpu softvfp
|
|
.type my_shared_func1, %function
|
|
my_shared_func1:
|
|
@ args = 0, pretend = 0, frame = 0
|
|
@ frame_needed = 0, uses_anonymous_args = 0
|
|
@ link register save eliminated.
|
|
bx lr
|
|
.size my_shared_func1, .-my_shared_func1
|
|
.align 2
|
|
.global my_shared_func3
|
|
.syntax unified
|
|
.thumb
|
|
.fpu softvfp
|
|
.type my_shared_func3, %function
|
|
my_shared_func3:
|
|
@ args = 0, pretend = 0, frame = 0
|
|
@ frame_needed = 0, uses_anonymous_args = 0
|
|
@ link register save eliminated.
|
|
mov r0, #0
|
|
bx lr
|
|
.size my_shared_func3, .-my_shared_func3
|
|
.align 2
|
|
.global my_shared_func2
|
|
.syntax unified
|
|
.thumb
|
|
.fpu softvfp
|
|
.type my_shared_func2, %function
|
|
my_shared_func2:
|
|
@ args = 0, pretend = 0, frame = 0
|
|
@ frame_needed = 0, uses_anonymous_args = 0
|
|
push {r4, lr}
|
|
mov r4, r9
|
|
bl my_shared_func3(PLT)
|
|
mov r9, r4
|
|
pop {r4, pc}
|
|
.size my_shared_func2, .-my_shared_func2
|