Add the functionality of flash into ram. Don't copy the printf.c file, so there is the standard tiny_printf.c from atollic or nothing (the stdlib).
Call the __libc_init_array, this is used to initialize all constructors in C++.