Add a linker script and example uart echo program

This commit is contained in:
2025-12-21 17:04:18 +01:00
parent c05ba60c3c
commit 25dd685345
2 changed files with 40 additions and 0 deletions

22
link.ld Normal file
View File

@@ -0,0 +1,22 @@
ENTRY(_start)
SECTIONS {
. = 0x80000000;
.text : ALIGN(4) {
*(.text*)
}
.rodata : ALIGN(8) {
*(.rodata*)
}
.data : ALIGN(8) {
*(.data*)
}
.bss : ALIGN(8) {
*(.bss*)
*(COMMON)
}
}