aboutsummaryrefslogtreecommitdiff
path: root/assembler/pico_bin.ld
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-07-15 03:50:10 -0500
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-07-15 03:50:10 -0500
commitb6462786840cea2e2c3197a36234363f91e41b1a (patch)
tree7de4c5c4d54e4240fd7f2e91aad820a8651e7625 /assembler/pico_bin.ld
parentd6ff9f5bda85206d163f02f7cc78e47968c434ce (diff)
Improve assembler controls
Diffstat (limited to 'assembler/pico_bin.ld')
-rw-r--r--assembler/pico_bin.ld13
1 files changed, 13 insertions, 0 deletions
diff --git a/assembler/pico_bin.ld b/assembler/pico_bin.ld
new file mode 100644
index 0000000..3059501
--- /dev/null
+++ b/assembler/pico_bin.ld
@@ -0,0 +1,13 @@
+ENTRY(main)
+
+MEMORY {
+ FLASH(rx) : ORIGIN = 0x10000000, LENGTH = 2M
+ SRAM(rwx) : ORIGIN = 0x20001000, LENGTH = 260K
+}
+
+SECTIONS {
+ .text : {
+ *(.text);
+ . = ALIGN(4);
+ } > SRAM
+}