summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-10-10 12:43:13 -0500
committerMarcus Huderle <huderlem@gmail.com>2018-10-10 12:43:13 -0500
commitbaab3ad562001c8d33b2a6d93c476324687a0613 (patch)
treeeefd73b69928bc77681d6fccde3fbde5f133a0e3
parent69484fa8da6d4c1917375a1e3ce5bbe49565408b (diff)
Add ewram and iwram sections
-rwxr-xr-xasm/ewram.s1
-rwxr-xr-xasm/iwram.s1
-rwxr-xr-xld_script.ld21
3 files changed, 11 insertions, 12 deletions
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
}