rt: Set hidden visibility on __morestack

Each crate will have its own copy of this function, which should not be
exported.
This commit is contained in:
Brian Anderson 2011-11-28 17:14:41 -08:00
parent 28745aa07f
commit 3a80d7b0e3
2 changed files with 18 additions and 0 deletions

View File

@ -52,6 +52,15 @@
.globl UPCALL_CALL_C_STACK
.globl MORESTACK
// FIXME: What about _WIN32?
#if defined(__linux__)
.hidden MORESTACK
#else
#if defined(__APPLE__)
.private_extern MORESTACK
#endif
#endif
#ifdef __ELF__
.type MORESTACK,@function
#endif

View File

@ -35,6 +35,15 @@
.globl UPCALL_CALL_C
.globl MORESTACK
// FIXME: What about _WIN32?
#if defined(__linux__)
.hidden MORESTACK
#else
#if defined(__APPLE__)
.private_extern MORESTACK
#endif
#endif
#ifdef __ELF__
.type MORESTACK,@function
#endif