diff options
| author | YamaArashi <shadow962@live.com> | 2016-05-15 21:13:30 -0700 |
|---|---|---|
| committer | YamaArashi <shadow962@live.com> | 2016-05-15 21:13:30 -0700 |
| commit | 1879d0883eabde11644db73cc070ce4bca8b0de5 (patch) | |
| tree | 902ee4257ba0e68dd73945123079a296127c168b /ld_script.txt | |
| parent | 147c8672c3be861fa9229c775c37933a39900b9c (diff) | |
main.c
Diffstat (limited to 'ld_script.txt')
| -rw-r--r-- | ld_script.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ld_script.txt b/ld_script.txt index ab87a25e6..0c3029cae 100644 --- a/ld_script.txt +++ b/ld_script.txt @@ -4,6 +4,14 @@ gNumMusicPlayers = 4; gMaxLines = 60; SECTIONS { + . = 0x2020000; + + ewram (NOLOAD) : + ALIGN(4) + { + src/main.o(ewram_data); + } + . = 0x3000000; iwram (NOLOAD) : @@ -16,6 +24,7 @@ SECTIONS { tools/agbcc/lib/libgcc.a:dp-bit.o(.bss); tools/agbcc/lib/libgcc.a:fp-bit.o(.bss); src/m4a_2.o(.bss.code); + src/main.o(iwram_data); . = 0x5FD0; src/m4a_2.o(iwram_data); } @@ -26,6 +35,7 @@ SECTIONS { ALIGN(4) { asm/crt0.o(.text); + src/main.o(.text); asm/rom1.o(.text); src/string_util.o(.text); asm/rom2.o(.text); @@ -76,6 +86,7 @@ SECTIONS { .rodata : ALIGN(4) { + src/main.o(.rodata); data/data2.o(.rodata); src/m4a_tables.o(.rodata); data/sound_data.o(.rodata); |
