When enabling the -flto optimization (in the C , C++ compilers and linker) with arm-none-eabi 9.2.1 in a project using the FreeRTOS kernel, the linker fails with following message
C:\Users\Victor\AppData\Local\Temp\ccmlDk9r.s:2750: Error: invalid offset, value too big (0x00006E80)c:/nxp/mcuxpressoide_11.2.0_4120/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.2.0.202001021529/tools/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: error: lto-wrapper failed
When enabling the -flto optimization (in the C , C++ compilers and linker) with arm-none-eabi 9.2.1 in a project using the FreeRTOS kernel, the linker fails with following message
C:\Users\Victor\AppData\Local\Temp\ccmlDk9r.s:2750: Error: invalid offset, value too big (0x00006E80)
c:/nxp/mcuxpressoide_11.2.0_4120/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.2.0.202001021529/tools/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: error: lto-wrapper failed
Target
Related post on NXP forums : https://community.nxp.com/message/1346393?commentID=1346393&et=watches.email.thread#comment-1346393
I do not have the knowledge to understand what goes wrong.