aboutsummaryrefslogtreecommitdiff
path: root/hexedit/pico_ram_only.ld
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-06-04 19:37:29 -0500
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-06-04 19:37:29 -0500
commit8be9a0ac6bd25a1c8524bd88d910046c5d78095f (patch)
tree7d892a1b86e8071502cd208ac415d8d6a23f049a /hexedit/pico_ram_only.ld
parentf2f186c3594a922e51abf25b24052c61f833a2bf (diff)
Add stage 1 editor and update README
Diffstat (limited to 'hexedit/pico_ram_only.ld')
-rw-r--r--hexedit/pico_ram_only.ld14
1 files changed, 14 insertions, 0 deletions
diff --git a/hexedit/pico_ram_only.ld b/hexedit/pico_ram_only.ld
new file mode 100644
index 0000000..1185af5
--- /dev/null
+++ b/hexedit/pico_ram_only.ld
@@ -0,0 +1,14 @@
+ENTRY(main)
+
+MEMORY {
+ FLASH(rx) : ORIGIN = 0x10000000, LENGTH = 2M
+ SRAM(rwx) : ORIGIN = 0x20000000, LENGTH = 264K
+}
+
+SECTIONS {
+ .text : {
+ main.o(.text);
+ *(.text);
+ . = ALIGN(4);
+ } > SRAM
+}