forked from M-Labs/zynq-rs
1
0
Fork 0

link.x: fix __stack_start

This fixes the memory corruption problem.
This commit is contained in:
Astro 2019-09-29 01:38:23 +02:00
parent 06bc7ba809
commit f9cc561144
1 changed files with 1 additions and 1 deletions

2
link.x
View File

@ -60,7 +60,7 @@ SECTIONS
. += STACK_SIZE; . += STACK_SIZE;
} > OCM } > OCM
__stack_end = ADDR(.stack); __stack_end = ADDR(.stack);
__stack_start = ADDR(.stack) + SIZEOF(.stack) - 4; __stack_start = ADDR(.stack) + SIZEOF(.stack);
/DISCARD/ : /DISCARD/ :
{ {