Backported gHeap alignment fix from upstream pret

This commit is contained in:
Eduardo Quezada 2024-01-28 20:43:14 -03:00 committed by Philipp AUER
parent 9bcd46bce8
commit 127a7e9600

View file

@ -15,6 +15,11 @@ SECTIONS {
ewram 0x2000000 (NOLOAD) : ewram 0x2000000 (NOLOAD) :
ALIGN(4) ALIGN(4)
{ {
/*
We link malloc.o here to prevent `gHeap` from landing in the middle of EWRAM.
Otherwise this causes corruption issues on some ld versions
*/
gflib/malloc.o(ewram_data);
src/*.o(ewram_data); src/*.o(ewram_data);
gflib/*.o(ewram_data); gflib/*.o(ewram_data);