summaryrefslogtreecommitdiffstats
path: root/script.ld
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2024-09-12 13:25:05 +0800
committerSadeep Madurange <sadeep@asciimx.com>2024-09-12 13:25:05 +0800
commit64be5c97aab4a9d9e9055979b22108f355e9ce0d (patch)
treefa3922b070fba3df49427c49df9d38f11bcd432a /script.ld
parent4182c9406565c67c95cef2ae238287ea823937c3 (diff)
downloadbare-metal-arduino-due-64be5c97aab4a9d9e9055979b22108f355e9ce0d.tar.gz
Clean up code.
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);
}