From 61e3f0b391a7d704ed0425473045b3c60e3a66e0 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 9 Mar 2023 23:46:54 -0700 Subject: [PATCH] windows: disable -fdata-sections This causes all data to be emitted as .data$*. This breaks fzero-initialized-in-bss, because linker puts stuff in .data even when it's all-zero and should end up in .bss. --- libraries/config/os/windows/os.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/config/os/windows/os.mk b/libraries/config/os/windows/os.mk index c63a7d8d5..55e8a06c0 100644 --- a/libraries/config/os/windows/os.mk +++ b/libraries/config/os/windows/os.mk @@ -1,5 +1,5 @@ export ATMOSPHERE_DEFINES += -DATMOSPHERE_OS_WINDOWS -export ATMOSPHERE_SETTINGS += -fno-omit-frame-pointer +export ATMOSPHERE_SETTINGS += -fno-omit-frame-pointer -fno-data-sections export ATMOSPHERE_CFLAGS += export ATMOSPHERE_CXXFLAGS += export ATMOSPHERE_ASFLAGS +=