Skip to content

Commit

Permalink
powerpc: rough platform support
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed Jan 12, 2015
1 parent 7a05dc2 commit 8341ee4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/rt/arch/powerpc/morestack.S
@@ -0,0 +1,20 @@
#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

.hidden __morestack

// FIXME(POWERPC): this might not be perfectly right but works for now
__morestack:
.cfi_startproc
bl rust_stack_exhausted
// the above function ensures that it never returns
.cfi_endproc
.end __morestack
4 changes: 4 additions & 0 deletions src/rt/arch/powerpc/record_sp.S
@@ -0,0 +1,4 @@
// Mark stack as non-executable
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack, "", %progbits
#endif

0 comments on commit 8341ee4

Please sign in to comment.