git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224994
91177308-0d34-0410-b5e6-
96231b3b80d8
#undef ARM_MATH_DECL
#endif
#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
extern "C" void __morestack();
#endif
if (Name == "atexit") return (uint64_t)&atexit;
if (Name == "mknod") return (uint64_t)&mknod;
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;
// __morestack lives in libgcc, a static library.
if (Name == "__morestack") return (uint64_t)&__morestack;
#endif // __linux__ && __GLIBC__
// See ARM_MATH_IMPORTS definition for explanation
#endif // __linux__ && __GLIBC__
// See ARM_MATH_IMPORTS definition for explanation