From d4e8359940e0f64fa94c8cd1e3edec50d66b2077 Mon Sep 17 00:00:00 2001 From: Luna Saphie Mittelbach Date: Tue, 14 May 2024 14:38:34 +0200 Subject: [PATCH] fix: solve "section conflict" GCC error with attribute macros This is the exact same fix as https://github.com/devkitPro/libgba/pull/9. --- include/tonc_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tonc_types.h b/include/tonc_types.h index 62f78b2..3c669bb 100644 --- a/include/tonc_types.h +++ b/include/tonc_types.h @@ -46,10 +46,10 @@ //! Put variable in IWRAM (default). -#define IWRAM_DATA __attribute__((section(".iwram"))) +#define IWRAM_DATA __attribute__((section(".iwram_data"))) //! Put variable in EWRAM. -#define EWRAM_DATA __attribute__((section(".ewram"))) +#define EWRAM_DATA __attribute__((section(".ewram_data"))) //! Put non-initialized variable in EWRAM. #define EWRAM_BSS __attribute__((section(".sbss")))