Newlib and math functions
The Newlib libraries do not include any math functions (e.g. sqrt, cos, etc.). However, Redlib does include the math functions, but they are only linked with your application when they are required and therefore has no impact on code size.
To include the math library with Newlib, you need to add the m (libm.a) library.