https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66239
--- Comment #6 from Maciej Andrzejewski <maciej.andrzejewski at data dot pl> --- Libm and other libs have been mixed. Properly compiled toolchain with libs solved the problem. Thank you all for assistance!