From a4520d4dd5434cc0aa534ba97d48e71b0cd931bd Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Tue, 5 Aug 2025 22:54:21 +0300 Subject: [PATCH] NCSD loader: Fix BSS (again) --- src/core/loader/ncsd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/loader/ncsd.cpp b/src/core/loader/ncsd.cpp index efdc45cb..5ae6de15 100644 --- a/src/core/loader/ncsd.cpp +++ b/src/core/loader/ncsd.cpp @@ -70,7 +70,7 @@ bool Memory::mapCXI(NCSD& ncsd, NCCH& cxi) { copyToVaddr(rodataAddr, code.data() + textSize, rodataSize); copyToVaddr(dataAddr, code.data() + textSize + rodataSize, cxi.data.pageCount << 12); // Set BSS to zeroes - copyToVaddr(bssAddr, code.data() + textSize + rodataSize + (cxi.data.size << 12), bssSize); + copyToVaddr(bssAddr, code.data() + textSize + rodataSize + (cxi.data.pageCount << 12), bssSize); ncsd.entrypoint = cxi.text.address;