From 358ff9556edceba1e8689fbfd1fc67588d8ab6cb Mon Sep 17 00:00:00 2001
From: Mike McLaughlin <mikem@microsoft.com>
Date: Mon, 23 Sep 2024 14:14:01 -0700
Subject: [PATCH] Fix linux-arm64 libsosplugin.so not loading

---
 src/SOS/lldbplugin/sosplugin.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/SOS/lldbplugin/sosplugin.cpp b/src/SOS/lldbplugin/sosplugin.cpp
index f4ef26e1c9..2f13c3785a 100644
--- a/src/SOS/lldbplugin/sosplugin.cpp
+++ b/src/SOS/lldbplugin/sosplugin.cpp
@@ -7,6 +7,11 @@ namespace lldb {
     bool PluginInitialize (lldb::SBDebugger debugger);
 }
 
+#if defined(HOST_ARM64)
+// Flag to check if atomics feature is available on the machine
+bool g_arm64_atomics_present = false;
+#endif
+
 LLDBServices* g_services = nullptr;
 
 bool lldb::PluginInitialize(lldb::SBDebugger debugger)