Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
1.8.0
-
None
Description
In 1.8.0, syntax of linkerFlags was changed (early there were raw flags, now - flags are prefixed by -Xlinker), so I can't specify -mthumb for gcc that is used as linker.
So compiled code links non-thumb version of c/c++ routines, and fails on calling __libc_init_array.
Current linker call looks like
/usr/bin/arm-none-eabi-gcc -Wl,-T/.../STM32F103C8Tx_FLASH.ld -Wl,--gc-sections -o ....
How I can specify arch/instruction set for GCC called for linking? commonCompilerFlags arent passed here for some reason...