summary refs log tree commit diff
path: root/src/rt/arch/aarch64/morestack.S
blob: 12827cea0feda1b6b4b59e7514047732efd899d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "macros.S"

// Mark stack as non-executable
#if defined(__linux__) && defined(__ELF__)
.section	.note.GNU-stack, "", %progbits
#endif

/* See i386/morestack.S for the lengthy, general explanation. */

.global rust_stack_exhausted

// FIXME(AARCH64): this might not be perfectly right but works for now
func	__morestack
	.cfi_startproc
	bl rust_stack_exhausted
	// the above function ensures that it never returns
	.cfi_endproc
endfunc	__morestack
	.hidden __morestack