freebsd-nq/lib/csu/arm/crti.S
Konstantin Belousov 96cdb0ab9d Annotate arm userspace assembler sources stating their tolerance to
the non-executable stack.

Reviewed by:	andrew
Sponsored by:	The FreeBSD Foundation
2015-09-29 16:09:58 +00:00

23 lines
374 B
ArmAsm

#include <machine/asm.h>
__FBSDID("$FreeBSD$");
.section .init,"ax",%progbits
.align 4
.globl _init
.type _init,%function
_init:
mov ip, sp
stmdb sp!, {fp, ip, lr, pc}
sub fp, ip, #4
.section .fini,"ax",%progbits
.align 4
.globl _fini
.type _fini,%function
_fini:
mov ip, sp
stmdb sp!, {fp, ip, lr, pc}
sub fp, ip, #4
.section .note.GNU-stack,"",%progbits