# gcc hello.c -o hello
/usr/bin/ld: error: hello uses VFP register arguments, /tmp/ccMMcyHs.o does not
/usr/bin/ld: failed to merge target specific data of file /tmp/ccMMcyHs.o
collect2: error: ld returned 1 exit status
-mfloat-abi=name
Specifies which floating-point ABI to use. Permissible values are: ‘soft’, ‘softfp’ and ‘hard’.
Specifying ‘soft’ causes GCC to generate output containing library calls for floating-point operations. ‘softfp’ allows the generation of code using hardware floating-point instructions, but still uses the soft-float calling conventions. ‘hard’ allows generation of floating-point instructions and uses FPU-specific calling conventions.
The default depends on the specific target configuration. Note that the hard-float and soft-float ABIs are not link-compatible; you must compile your entire program with the same ABI, and link with a compatible set of libraries.
欢迎光临 狗趴(GodPub),开源硬件学习与实践 (http://forum.godpub.com/) | Powered by Discuz! X3.2 |