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:
parent
28745aa07f
commit
3a80d7b0e3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue