Question
Why STM32CubeIDE linker files discard libc.a libg.a and libgcc.a?
Just out of curiosity. Why STM32CubeIDE linker files discard libc.a libg.a and libgcc.a?
At the end of the linker file we usually find:
/* Remove information from the compiler libraries */
/DISCARD/ :
{
libc.a ( * )
libm.a ( * )
libgcc.a ( * )
}Maybe I didn't get something right but, shouldn't the libc.a include all the C standard library code, so it should be needed to compile a C application?
Regards,