This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CortexM4 -mfloat-abi=hard, linker error

I am trying to build baremetal binary for cortexm4 using fpu=fpv4-sp-d16 and float-abi=hard options.

While building with float-abi=soft works fine, as soon as I switch to hardware fpu, i get linker error about 

VFP register arguments in libc.a(lib_a-abort.o) does not exist 

and bunch of other errors regarding the same libc.a library.
My code is basically main function. I am using Segger embedded studio which throws in few assembler and c files for system init and startup.

gcc-arm I am using is (macOS, manual install from .tar.gz):
gcc version 9.3.1 20200408 (release) (GNU Arm Embedded Toolchain 9-2020-q2-update) 

I had an issue getting compiler running as libc.a symbolic link was broken and I had to re-link it to libg.a. Could that be the cause of the error ?