summaryrefslogtreecommitdiffstats
path: root/script.ld
diff options
context:
space:
mode:
Diffstat (limited to 'script.ld')
-rw-r--r--script.ld18
1 files changed, 3 insertions, 15 deletions
diff --git a/script.ld b/script.ld
index 24129f5..a063ffe 100644
--- a/script.ld
+++ b/script.ld
@@ -1,33 +1,23 @@
-ENTRY(main)
-
MEMORY
{
rom (rx) : ORIGIN = 0x00080000, LENGTH = 512K
- ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
+ ram (rwx) : ORIGIN = 0x20000000, LENGTH = 96K
}
+sp = ORIGIN(ram) + LENGTH(ram);
+
SECTIONS
{
.text :
{
KEEP(*(.vtor))
-
*(.text*)
*(.rodata*)
-
- . = ALIGN(4);
- __end_of_text__ = .;
} > rom
.data :
{
- __data_start_src__ = __end_of_text__;
- __data_start__ = .;
-
*(.data*)
-
- . = ALIGN(4);
- __data_end__ = .;
} > ram AT >rom
.bss (NOLOAD) :
@@ -37,6 +27,4 @@ SECTIONS
*(COMMON)
__bss_end__ = . ;
} > ram
-
- sp = ORIGIN(ram) + LENGTH(ram);
}