FreeRTOS / FreeRTOS-Kernel

FreeRTOS kernel files only, submoduled into https://github.com/FreeRTOS/FreeRTOS and various other repos.
https://www.FreeRTOS.org
MIT License
2.7k stars 1.11k forks source link

[BUG] -flto optimization fails with ARM_CM0 port (invalid offset, value too big) #105

Closed victor314159 closed 4 years ago

victor314159 commented 4 years ago

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

image

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.

victor314159 commented 4 years ago

The bug was not related to RTOS. Sorry for the mistake