Skip to content

Commit

Permalink
windows: disable -fdata-sections
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SciresM committed Mar 10, 2023
1 parent cd9b173 commit 61e3f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/config/os/windows/os.mk
Original file line number Diff line number Diff line change
@@ -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 +=

0 comments on commit 61e3f0b

Please sign in to comment.