mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-25 12:04:36 +00:00
The __morestack function is only available on i386 and x86_64 architectures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224994 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8919b82605
commit
7d099f9e6a
@ -210,7 +210,8 @@ ARM_MATH_IMPORTS(ARM_MATH_DECL)
|
||||
#undef ARM_MATH_DECL
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) && defined(__GLIBC__)
|
||||
#if defined(__linux__) && defined(__GLIBC__) && \
|
||||
(defined(__i386__) || defined(__x86_64__))
|
||||
extern "C" void __morestack();
|
||||
#endif
|
||||
|
||||
@ -238,8 +239,10 @@ RTDyldMemoryManager::getSymbolAddressInProcess(const std::string &Name) {
|
||||
if (Name == "atexit") return (uint64_t)&atexit;
|
||||
if (Name == "mknod") return (uint64_t)&mknod;
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
// __morestack lives in libgcc, a static library.
|
||||
if (Name == "__morestack") return (uint64_t)&__morestack;
|
||||
#endif
|
||||
#endif // __linux__ && __GLIBC__
|
||||
|
||||
// See ARM_MATH_IMPORTS definition for explanation
|
||||
|
Loading…
x
Reference in New Issue
Block a user