參考資訊:
https://www.freertos.org/FreeRTOS_Support_Forum_Archive/January_2006/freertos_Linking_problems_with_gcc_3.4.5_1414228.html
問題如下:
/opt/gcc-4.8/lib/gcc/armv7l-unknown-linux-gnueabihf/4.8.2/../../../../armv7l-unknown-linux-gnueabihf/bin/ld: section .plt LMA [08001c94,08001cb3] overlaps section .dynamic LMA [08001c94,08001d4b] collect2: error: ld returned 1 exit status make: *** [Makefile:39: main] Error 1
解法如下:
-static