mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-04-27 10:47:09 -05:00
fix(linking): link gflib/malloc.c at top of EWRAM in ld_script_modern.ld
This commit is contained in:
parent
bcd5fc1481
commit
e2eca97b02
|
|
@ -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);
|
||||||
} > EWRAM
|
} > EWRAM
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user