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

2
link.x
View File

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