From d2adc304f04dfcbc75bff206bb7db2333c75825a Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 23 Mar 2024 21:12:27 +0100 Subject: [PATCH] Move global variables out of data section --- source/globals.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/source/globals.cpp b/source/globals.cpp index a0fe619..18d8216 100644 --- a/source/globals.cpp +++ b/source/globals.cpp @@ -1,15 +1,15 @@ #include "globals.h" -StoredBuffer gStoredTVBuffer __attribute__((section(".data"))) = {}; -StoredBuffer gStoredDRCBuffer __attribute__((section(".data"))) = {}; +StoredBuffer gStoredTVBuffer = {}; +StoredBuffer gStoredDRCBuffer = {}; -std::vector> gLoadedPlugins __attribute__((section(".data"))); -std::vector gTrampData __attribute__((section(".data"))); +std::vector> gLoadedPlugins; +std::vector gTrampData; -std::set> gLoadedData __attribute__((section(".data"))); -std::set> gLoadOnNextLaunch __attribute__((section(".data"))); -std::mutex gLoadedDataMutex __attribute__((section(".data"))); -std::map gUsedRPLs __attribute__((section(".data"))); -std::vector gAllocatedAddresses __attribute__((section(".data"))); +std::set> gLoadedData; +std::set> gLoadOnNextLaunch; +std::mutex gLoadedDataMutex; +std::map gUsedRPLs; +std::vector gAllocatedAddresses; -bool gNotificationModuleLoaded __attribute__((section(".data"))) = false; \ No newline at end of file +bool gNotificationModuleLoaded = false; \ No newline at end of file