Commit ac4e1d23 by Anton D. Kachalov Committed by Ben Clayton

Add missed symbol __aeabi_idivmod for Android.

SwiftShader segfaults when trying to resolve missed symbol. The symbol is requested at least on ARM32 (armv7l). Bug: b/149229646 Change-Id: I5436b244c2e7ec9a0d557f57697adbdb5e29a0cb Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/41089 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent d5a2a597
......@@ -79,6 +79,10 @@ extern "C" void _chkstk();
# include <sanitizer/msan_interface.h>
#endif
#ifdef __ARM_EABI__
extern "C" signed __aeabi_idivmod();
#endif
namespace {
// Cache provides a simple, thread-safe key-value store.
......@@ -539,6 +543,9 @@ void *resolveExternalSymbol(const char *name)
functions.emplace("chkstk", reinterpret_cast<void *>(_chkstk));
#endif
#ifdef __ARM_EABI__
functions.emplace("aeabi_idivmod", reinterpret_cast<void *>(__aeabi_idivmod));
#endif
#ifdef __ANDROID__
functions.emplace("aeabi_unwind_cpp_pr0", reinterpret_cast<void *>(F::neverCalled));
functions.emplace("sync_synchronize", reinterpret_cast<void *>(F::sync_synchronize));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment