We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 785eb92 + d470afd commit 783ed7aCopy full SHA for 783ed7a
riscv-rt/CHANGELOG.md
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
8
## [Unreleased]
9
10
+### Changed
11
+
12
+- Main function no longer needs to be close to _start. A linker script may copy
13
+ all code to RAM and keep .init in flash/ROM.
14
15
## [v0.15.0] - 2025-06-10
16
17
### Added
riscv-rt/src/asm.rs
@@ -217,7 +217,8 @@ cfg_global_asm!(
217
ld a1, 8 * 1(sp)
218
ld a2, 8 * 2(sp)
219
addi sp, sp, 8 * 4",
220
- "jal zero, main
+ "la t0, main
221
+ jr t0
222
.cfi_endproc",
223
);
224
0 commit comments