stm32f place startup*.o first in linking order due to gcc flto bug

ref: https://bugs.launchpad.net/gcc-arm-embedded/+bug/1747966
This commit is contained in:
hathach
2019-03-19 16:41:00 +07:00
parent 11eed2f026
commit 0fcd263df3
2 changed files with 8 additions and 8 deletions
@@ -41,9 +41,9 @@ _Min_Stack_Size = 0x4000; /* required amount of stack */
/* Specify the memory areas */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
CCMRAM (rw) : ORIGIN = 0x10000000, LENGTH = 64K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
CCMRAM (rw) : ORIGIN = 0x10000000, LENGTH = 64K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K
}
/* Define output sections */