Skip to content

Commit

Permalink
Sw: Fix sp init in memisl linker script
Browse files Browse the repository at this point in the history
Stack pointer should be initialized to last memory address
  • Loading branch information
sermazz committed Oct 4, 2024
1 parent 3743c91 commit ea41b08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sw/link/memisl.ld
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
INCLUDE common.ldh

SECTIONS {
__stack_pointer$ = ORIGIN(memisl) + LENGTH(memisl);

.text : {
*(.text._start)
*(.text)
Expand Down

0 comments on commit ea41b08

Please sign in to comment.