From b24f0a3a90314277f03b595e72472e4ebcb3d0c4 Mon Sep 17 00:00:00 2001 From: Aetias Date: Fri, 16 Feb 2024 16:14:31 +0100 Subject: [PATCH] Add `sbss` section for compiler --- include/global.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/global.h b/include/global.h index c1672d03..c6feeca9 100644 --- a/include/global.h +++ b/include/global.h @@ -17,4 +17,7 @@ // `override` was added in C++11 before the DS, so we only use the keyword to indicate overriden functions #define override +// Define .sbss variables by using #pragma section sbss begin|end +#pragma define_section sbss ".data" ".sbss" + #endif