fixed some LTO issues
This commit is contained in:
@@ -70,7 +70,7 @@ add_compile_options(
|
|||||||
-Wextra
|
-Wextra
|
||||||
-Wpedantic
|
-Wpedantic
|
||||||
-Wno-unused-parameter
|
-Wno-unused-parameter
|
||||||
-flto
|
-flto=8
|
||||||
)
|
)
|
||||||
|
|
||||||
add_link_options(
|
add_link_options(
|
||||||
@@ -86,7 +86,7 @@ add_link_options(
|
|||||||
-lstdc++
|
-lstdc++
|
||||||
-lsupc++
|
-lsupc++
|
||||||
-Wl,--end-group
|
-Wl,--end-group
|
||||||
-flto
|
-flto=8
|
||||||
-Wl,-z,max-page-size=8 # Allow good software remapping across address space (with proper GCC section making)
|
-Wl,-z,max-page-size=8 # Allow good software remapping across address space (with proper GCC section making)
|
||||||
-Wl,--print-memory-usage
|
-Wl,--print-memory-usage
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -166,6 +166,8 @@ standard names. */
|
|||||||
|
|
||||||
#define USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION 0
|
#define USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION 0
|
||||||
|
|
||||||
|
#define portDONT_DISCARD __attribute__((used))
|
||||||
|
|
||||||
/* USER CODE BEGIN Defines */
|
/* USER CODE BEGIN Defines */
|
||||||
/* Section where parameter definitions can be added (for instance, to override default ones in FreeRTOS.h) */
|
/* Section where parameter definitions can be added (for instance, to override default ones in FreeRTOS.h) */
|
||||||
/* USER CODE END Defines */
|
/* USER CODE END Defines */
|
||||||
|
|||||||
@@ -43,12 +43,12 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
|
|||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
|
ITCMRAM (rw) : ORIGIN = 0x00000000, LENGTH = 64K
|
||||||
DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
|
DTCMRAM (rw) : ORIGIN = 0x20000000, LENGTH = 128K
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
|
||||||
RAM_D1 (xrw) : ORIGIN = 0x24000000, LENGTH = 320K
|
RAM_D1 (rw) : ORIGIN = 0x24000000, LENGTH = 320K
|
||||||
RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 32K
|
RAM_D2 (rw) : ORIGIN = 0x30000000, LENGTH = 32K
|
||||||
RAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 16K
|
RAM_D3 (rw) : ORIGIN = 0x38000000, LENGTH = 16K
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Define output sections */
|
/* Define output sections */
|
||||||
|
|||||||
Reference in New Issue
Block a user