https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78110
--- Comment #4 from Bernd Edlinger <bernd.edlinger at hotmail dot de> --- First I was a bit shocked, but i think my patch above looks reasonable. Because the installation is free-standing it is natural that we cannot #include <malloc.h>. Although the eCos has no memalign, that is benign, and everything links fine without unresolved symbols. If it ever is needed, it will be easy to add a memalign function.