Разбил опции линковки на строки (везде заменил полный путь на относительный). Порядок опций сохранил.
Для проекта Coocox и собираемый GCC из консоли:
Bash
arm-none-eabi-gcc \
-mcpu=cortex-m4 \
-mfpu=fpv4-sp-d16 \
-mfloat-abi=softfp \
-mthumb \
-g2 \
-nostartfiles \
-Wl,-Map=stm32f429.map \-O0 \
-Wl,--gc-sections \
-L../STM32F429-Disco_FreeRTSOS/src \
-Wl,-T../STM32F429-Disco_FreeRTSOS/ldscripts/ub_linkerscript_stm32f429i_disco.ld \
-g \
-o stm32f429.elf \
../obj/stm32f4xx_gpio.o ../obj/stm32f4xx_usart.o ../obj/stm32f4xx_dma.o ../obj/stm32_ub_led.o ../obj/GUI2.o ../obj/stm32f4xx_ltdc.o ../obj/oszi.o ../obj/stm32f4xx_spi.o ../obj/arm_rfft_f32.o ../obj/misc.o ../obj/stm32f4xx_adc.o ../obj/arm_cfft_radix4_f32.o ../obj/syscalls.o ../obj/stm32f4xx_fmc.o ../obj/stm32f4xx_i2c.o ../obj/arm_max_f32.o ../obj/arm_rfft_init_f32.o ../obj/arm_cmplx_mag_f32.o ../obj/printf.o ../obj/ub_font_arial_7x10.o ../obj/stm32_ub_i2c3.o ../obj/arm_common_tables.o ../obj/stm32_ub_touch_stmpe811.o ../obj/startup_stm32f4xx.o ../obj/stm32f4xx_rcc.o ../obj/stm32_ub_graphic2d.o ../obj/stm32_ub_font.o ../obj/adc.o ../obj/system_stm32f4xx.o ../obj/stm32_ub_uart.o ../obj/arm_cfft_radix4_init_f32.o ../obj/stm32_ub_button.o ../obj/stm32_ub_spi5.o ../obj/GUI1.o ../obj/stm32f4xx_tim.o ../obj/menu.o ../obj/stm32_ub_sdram.o ../obj/stm32f4xx_dma2d.o ../obj/stm32_ub_lcd_ili9341.o ../obj/main.o ../obj/fft.o ../obj/stm32_ub_systick.o \
-lm \
-lgcc \
-lc
Для QBS:
Bash
/usr/bin/arm-none-eabi-g++ \
../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/1bf4303e4ce6d9a8/ub_font_arial_7x10.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/2ef5d228e5150bb6/misc.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/2ef5d228e5150bb6/stm32f4xx_adc.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/2ef5d228e5150bb6/stm32f4xx_dma.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/2ef5d228e5150bb6/stm32f4xx_dma2d.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/2ef5d228e5150bb6/stm32f4xx_fmc.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/2ef5d228e5150bb6/stm32f4xx_gpio.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/2ef5d228e5150bb6/stm32f4xx_i2c.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/2ef5d228e5150bb6/stm32f4xx_ltdc.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/2ef5d228e5150bb6/stm32f4xx_rcc.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/2ef5d228e5150bb6/stm32f4xx_spi.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/2ef5d228e5150bb6/stm32f4xx_tim.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/2ef5d228e5150bb6/stm32f4xx_usart.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/99ec59a75f921e9d/GUI1.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/99ec59a75f921e9d/GUI2.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/a89734a4c67740af/adc.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/a89734a4c67740af/fft.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/a89734a4c67740af/menu.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/a89734a4c67740af/oszi.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/b3fbddc16f9be6a9/printf.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/c483ae70643438df/syscalls.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/c9b3de592116f4ec/arm_cfft_radix4_f32.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/c9b3de592116f4ec/arm_cfft_radix4_init_f32.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/c9b3de592116f4ec/arm_cmplx_mag_f32.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/c9b3de592116f4ec/arm_common_tables.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/c9b3de592116f4ec/arm_max_f32.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/c9b3de592116f4ec/arm_rfft_f32.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/c9b3de592116f4ec/arm_rfft_init_f32.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/d289b27da2b899ad/startup_stm32f4xx.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/d67faf4c2e97d91e/stm32_ub_button.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/d67faf4c2e97d91e/stm32_ub_font.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/d67faf4c2e97d91e/stm32_ub_graphic2d.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/d67faf4c2e97d91e/stm32_ub_i2c3.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/d67faf4c2e97d91e/stm32_ub_lcd_ili9341.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/d67faf4c2e97d91e/stm32_ub_led.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/d67faf4c2e97d91e/stm32_ub_sdram.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/d67faf4c2e97d91e/stm32_ub_spi5.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/d67faf4c2e97d91e/stm32_ub_systick.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/d67faf4c2e97d91e/stm32_ub_touch_stmpe811.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/d67faf4c2e97d91e/stm32_ub_uart.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/e4a5378b16003ec3/system_stm32f4xx.c.o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/.obj/fc4a695f02a8a53a/main.c.o \
-g \
-O0 \
-Wall \
-Wextra \
'-Wl,-rpath,$ORIGIN' \
-T../STM32F429-Disco_FreeRTSOS/ldscripts/ub_linkerscript_stm32f429i_disco.ld \
-Wl,--unresolved-symbols=ignore-in-shared-libs \
-mcpu=cortex-m4 \
-mthumb \
-mfpu=fpv4-sp-d16 \
-mfloat-abi=softfp \
-g2 \
-nostartfiles \
-Wl,-Map=stm32f429.map \
-O0 \
-Xlinker \
--gc-sections \
-o ../build-STM32F429ZI-Discovery-STM32-Debug/qtc_STM32_041964a9-debug/stm32f429.qtc-STM32-041964a9.801cf937/stm32f429.elf