We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfd28a7 commit 0a2ecf5Copy full SHA for 0a2ecf5
lib/execute/signalhandlers/SignalHandlers.cpp
@@ -723,8 +723,9 @@ EnsureEagerSignalHandlers()
723
abort();
724
}
725
726
-# if defined(__arm__)
727
- // On Arm Handle Unaligned Accesses
+# if defined(__arm__) || defined(__APPLE__)
+ // On ARM, handle Unaligned Accesses.
728
+ // On Darwin, guard page accesses are raised as SIGBUS.
729
struct sigaction busHandler;
730
busHandler.sa_flags = SA_SIGINFO | SA_NODEFER | SA_ONSTACK;
731
busHandler.sa_sigaction = WasmTrapHandler;
0 commit comments