20d197f463
This allows these files to be used with hard and softfloat targets with no special flags passed to the compiler. Reviewed by: adrian, br, imp Differential Revision: https://reviews.freebsd.org/D8506
26 lines
565 B
ArmAsm
26 lines
565 B
ArmAsm
#include <machine/asm.h>
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
.gnu_attribute 4, 0
|
|
.section .init,"ax",%progbits
|
|
.align 4
|
|
.set noreorder
|
|
#if defined(__ABICALLS__) && (defined(__mips_n32) || defined(__mips_n64))
|
|
REG_L gp, CALLFRAME_GP(sp)
|
|
#endif
|
|
REG_L ra, CALLFRAME_RA(sp)
|
|
jr ra
|
|
PTR_ADDU sp, sp, CALLFRAME_SIZ
|
|
.set reorder
|
|
|
|
.section .fini,"ax",%progbits
|
|
.align 4
|
|
.set noreorder
|
|
#if defined(__ABICALLS__) && (defined(__mips_n32) || defined(__mips_n64))
|
|
REG_L gp, CALLFRAME_GP(sp)
|
|
#endif
|
|
REG_L ra, CALLFRAME_RA(sp)
|
|
jr ra
|
|
PTR_ADDU sp, sp, CALLFRAME_SIZ
|
|
.set reorder
|