Commit b7e6d8e3 by Ben Clayton

Revert "Add missed symbol __aeabi_idivmod for Android."

This reverts commit 5f5a0648. Reason for revert: Breaks Android build ld.lld: error: undefined symbol: __aeabi_idivmod >>> referenced by LLVMJIT.cpp:547 (external/swiftshader/src/Reactor/LLVMJIT.cpp:547) >>> LLVMJIT.o:((anonymous namespace)::JITRoutine::JITRoutine(std::__1::unique_ptr<llvm::Module, std::__1::default_delete<llvm::Module> >, llvm::Function**, unsigned int, rr::Config const&)::'lambda'(llvm::StringRef const&)::operator()(llvm::StringRef const&) const) in archive <omitted>/libswiftshader_llvm.a Change-Id: I153ac3a3a9bc395201024d4b38e43c064691a5ad Bug: None - build fix. Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/41088Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com>
parent 5f5a0648
...@@ -79,10 +79,6 @@ extern "C" void _chkstk(); ...@@ -79,10 +79,6 @@ extern "C" void _chkstk();
# include <sanitizer/msan_interface.h> # include <sanitizer/msan_interface.h>
#endif #endif
#ifdef __ANDROID__
extern "C" signed __aeabi_idivmod();
#endif
namespace { namespace {
// Cache provides a simple, thread-safe key-value store. // Cache provides a simple, thread-safe key-value store.
...@@ -544,7 +540,6 @@ void *resolveExternalSymbol(const char *name) ...@@ -544,7 +540,6 @@ void *resolveExternalSymbol(const char *name)
#endif #endif
#ifdef __ANDROID__ #ifdef __ANDROID__
functions.emplace("aeabi_idivmod", reinterpret_cast<void *>(__aeabi_idivmod));
functions.emplace("aeabi_unwind_cpp_pr0", reinterpret_cast<void *>(F::neverCalled)); functions.emplace("aeabi_unwind_cpp_pr0", reinterpret_cast<void *>(F::neverCalled));
functions.emplace("sync_synchronize", reinterpret_cast<void *>(F::sync_synchronize)); functions.emplace("sync_synchronize", reinterpret_cast<void *>(F::sync_synchronize));
functions.emplace("sync_fetch_and_add_4", reinterpret_cast<void *>(F::sync_fetch_and_add_4)); functions.emplace("sync_fetch_and_add_4", reinterpret_cast<void *>(F::sync_fetch_and_add_4));
......
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