Skip to content

Commit 27964ed

Browse files
committed
---
yaml --- r: 173483 b: refs/heads/master c: 8341ee4 h: refs/heads/master i: 173481: cb3fcca 173479: 55d09cf v: v3
1 parent fa39cfd commit 27964ed

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 7a05dc273dc193c747853e35231e165b2665e3f0
2+
refs/heads/master: 8341ee4075e46d4f5470c6081be4135cdffd21ed
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 210f0dcf007104240b2e286ed0b80cb4a61d7bae
55
refs/heads/try: 957472483d3a2f43c0e4f7c2056280a1022af93c

trunk/src/rt/arch/powerpc/morestack.S

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#include "macros.S"
2+
3+
// Mark stack as non-executable
4+
#if defined(__linux__) && defined(__ELF__)
5+
.section .note.GNU-stack, "", %progbits
6+
#endif
7+
8+
/* See i386/morestack.S for the lengthy, general explanation. */
9+
10+
.global rust_stack_exhausted
11+
12+
.hidden __morestack
13+
14+
// FIXME(POWERPC): this might not be perfectly right but works for now
15+
__morestack:
16+
.cfi_startproc
17+
bl rust_stack_exhausted
18+
// the above function ensures that it never returns
19+
.cfi_endproc
20+
.end __morestack

trunk/src/rt/arch/powerpc/record_sp.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Mark stack as non-executable
2+
#if defined(__linux__) && defined(__ELF__)
3+
.section .note.GNU-stack, "", %progbits
4+
#endif

0 commit comments

Comments
 (0)