For this library to work properly together with profiling requires a new mcrt0.o routine to start off. That in turn requires a change to the ordinary exit routine and a dummy routine __cleanup at the end of the regular C library. The cleanup routine in the lS library takes care of flushing buffers.