Add necessary sections for stack protection area and implement fill function
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
/* USER PARAMETERS */
|
||||
__ld_stack_size = 0x3000;
|
||||
__ld_heap_size = 0x2100;
|
||||
__stack_corruption_area_size = 64;
|
||||
|
||||
/* END OF USER PARAMETERS */
|
||||
ENTRY(Reset_Handler)
|
||||
@@ -150,6 +151,12 @@ SECTIONS
|
||||
__ld_sheap = .;
|
||||
. = . + __ld_heap_size;
|
||||
__ld_eheap = .;
|
||||
. = ALIGN(4)
|
||||
__ld_start_stack_corruption_detect_area = .;
|
||||
. = . + __stack_corruption_area_size;
|
||||
. = ALIGN(4);
|
||||
__ld_end_stack_corruption_detect_area = .;
|
||||
__ld_end_stack = .
|
||||
. = . + __ld_stack_size;
|
||||
. = ALIGN(4);
|
||||
} >RAM
|
||||
|
Reference in New Issue
Block a user