From baab3ad562001c8d33b2a6d93c476324687a0613 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Wed, 10 Oct 2018 12:43:13 -0500 Subject: Add ewram and iwram sections --- asm/ewram.s | 1 + asm/iwram.s | 1 + ld_script.ld | 21 +++++++++------------ 3 files changed, 11 insertions(+), 12 deletions(-) create mode 100755 asm/ewram.s create mode 100755 asm/iwram.s diff --git a/asm/ewram.s b/asm/ewram.s new file mode 100755 index 0000000..2bc030e --- /dev/null +++ b/asm/ewram.s @@ -0,0 +1 @@ + .section ewram diff --git a/asm/iwram.s b/asm/iwram.s new file mode 100755 index 0000000..71f5ca7 --- /dev/null +++ b/asm/iwram.s @@ -0,0 +1 @@ + .section iwram diff --git a/ld_script.ld b/ld_script.ld index 892b921..f582252 100755 --- a/ld_script.ld +++ b/ld_script.ld @@ -2,29 +2,26 @@ SECTIONS { /* start of ewram */ . = 0x02000000; - - /*ewram (NOLOAD) : + ewram (NOLOAD) : ALIGN(4) { - ewram.o(ewram); + asm/ewram.o(ewram); . = 0x40000; - }*/ - + } /* start of iwram */ - /*. = 0x03000000; + . = 0x03000000; iwram (NOLOAD) : ALIGN(4) { - iwram.o(iwram); + asm/iwram.o(iwram); . = 0x8000; - }*/ + } /* start of ROM */ - . = 0x08000000; - /*.text : + .text : { - rom.o(.text); - }=0xff*/ + asm/rom.o(.text); + }=0xFF } -- cgit v1.2.3