It is the -flto, once I remove it, it links fine. Also when I compile __aeabi_d2f.c alone into separate .o but without -flto it works when the rest uses -flto. However when I add -flto to that separate compile into __aeabi_d2f.o it does not help and does not work.
So somehow gcc expects the __aeabi_d2f to be placed in object file which is not compiled with lto.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It is the
-flto
, once I remove it, it links fine. Also when I compile __aeabi_d2f.c alone into separate .o but without -flto it works when the rest uses -flto. However when I add -flto to that separate compile into __aeabi_d2f.o it does not help and does not work.So somehow gcc expects the
__aeabi_d2f
to be placed in object file which is not compiled with lto.