This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Set stack size in linker file for Cortex-A72

Hi all.

May I know how to set the stack size in linker file for Cortex-A72?

I use the below linker file but I cannot see the ".stack" section in map file.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
STACKSIZE = DEFINED(STACKSIZE) ? STACKSIZE : 0x80000;
HEAPSIZE = DEFINED(HEAPSIZE) ? HEAPSIZE : 0x80000;
MEMORY
{
DDR4 : o = 0x80000, l = 0x40000000 /* 1GB external DDR */
}
SECTIONS
{
.text :
{
KEEP(*(.text.boot)) *(.text .text.* .gnu.linkonce.t*)
} > DDR4
.rodata :
{
*(.rodata .rodata.* .gnu.linkonce.r*)
} > DDR4
PROVIDE(_data = .);
.data :
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thanks a lot.

0