summaryrefslogtreecommitdiff
path: root/test.ld
diff options
context:
space:
mode:
Diffstat (limited to 'test.ld')
-rw-r--r--test.ld20
1 files changed, 20 insertions, 0 deletions
diff --git a/test.ld b/test.ld
new file mode 100644
index 0000000..a999c7d
--- /dev/null
+++ b/test.ld
@@ -0,0 +1,20 @@
+OUTPUT_ARCH(arm);
+
+MEMORY {
+ bios : ORIGIN = 0x00000000, LENGTH = 0x00004000
+ ewram : ORIGIN = 0x02000000, LENGTH = 0x00040000
+ iwram : ORIGIN = 0x03000000, LENGTH = 0x00008000
+ reg : ORIGIN = 0x04000000, LENGTH = 0x000003FF
+ pal : ORIGIN = 0x05000000, LENGTH = 0x00000400
+ vram : ORIGIN = 0x06000000, LENGTH = 0x00018000
+ oam : ORIGIN = 0x07000000, LENGTH = 0x00000400
+ rom : ORIGIN = 0x08000000, LENGTH = 0x02000000
+ sram : ORIGIN = 0x0E000000, LENGTH = 0x00010000
+};
+
+SECTIONS {
+ .bss : {*(.bss*)} > ewram
+ .data : {*(.data*)} > ewram
+ .text : {*(.text*)} > rom
+ .rodata : {*(.rodata*)} > rom
+};