Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
powerpc: rough platform support
  • Loading branch information
richo committed Jan 12, 2015
commit 8341ee4075e46d4f5470c6081be4135cdffd21ed
20 changes: 20 additions & 0 deletions src/rt/arch/powerpc/morestack.S
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Mark stack as non-executable
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack, "", %progbits
#endif