binutils-gdb/ld/testsuite/ld-arm/fdpic-shared.s
Christophe Lyon 4b86cbe91c [ARM] FDPIC: New tests.
2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
	Mickaël Guêné  <mickael.guene@st.com>

	ld/
	* testsuite/ld-arm/arm-elf.exp: Execute the new FDPIC tests.
	* testsuite/ld-arm/fdpic-main.d: New test.
	* testsuite/ld-arm/fdpic-main.ld: New.
	* testsuite/ld-arm/fdpic-main.r: New.
	* testsuite/ld-arm/fdpic-main.s: New.
	* testsuite/ld-arm/fdpic-main.sym: New.
	* testsuite/ld-arm/fdpic-shared.d: New test.
	* testsuite/ld-arm/fdpic-shared.ld: New.
	* testsuite/ld-arm/fdpic-shared.r: New.
	* testsuite/ld-arm/fdpic-shared.s: New.
	* testsuite/ld-arm/fdpic-shared.sym: New.
2018-04-25 21:00:02 +00:00

53 lines
1.1 KiB
ArmAsm

.arch armv7-r
.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
.arm
.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
.arm
.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
.arm
.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