Solved! Just flipped the order of libm and libcore in the linker settings and it worked. Here is the Link to the avr forum that helped.
Solved! Just flipped the order of libm and libcore in the linker settings and it worked. Here is the Link to the avr forum that helped.