forked from M-Labs/artiq
1
0
Fork 0

linker: generate stack guard + symbol

This commit is contained in:
occheung 2021-10-08 14:28:38 +08:00 committed by Sébastien Bourdeauducq
parent 178a86bcda
commit 790a20edf6
3 changed files with 10 additions and 2 deletions

View File

@ -50,4 +50,7 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
_end = .; _end = .;
} }
. = ALIGN(0x1000);
_sstack_guard = .;
} }

View File

@ -69,8 +69,11 @@ SECTIONS
_ebss = .; _ebss = .;
} > runtime } > runtime
.stack (NOLOAD) : ALIGN(16) .stack (NOLOAD) : ALIGN(0x1000)
{ {
_sstack_guard = .;
. += 0x1000;
_estack = .;
. += 0x10000; . += 0x10000;
_fstack = . - 16; _fstack = . - 16;
} > runtime } > runtime

View File

@ -58,8 +58,10 @@ SECTIONS
_ebss = .; _ebss = .;
} > main_ram } > main_ram
.stack (NOLOAD) : ALIGN(16) .stack (NOLOAD) : ALIGN(0x1000)
{ {
_sstack_guard = .;
. += 0x1000;
_estack = .; _estack = .;
. += 0x10000; . += 0x10000;
_fstack = . - 16; _fstack = . - 16;