crt: Avoid optimizing fprintf calls into fwrite in crt startup code

By avoiding turning fprintf(stderr,) into fwrite(stderr,) we can localize
the compat wrapping for that to fprintf. Then we shouldn't ever need to
worry about functions needing init_compat to be called before they're
invoked by the constructor.

This allows simplifying the ucrtbase_compat.c code quite significantly.

Signed-off-by: Martin Storsjö <martin@martin.st>
3 files changed