This repo contains CoreRT, an experimental .NET Core runtime optimized for AOT (ahead of time compilation) scenarios, with the accompanying compiler toolchain.
The PAL implementation of FlushProcessWriteBuffers does not have the support for Linux syscalls. I think it would be ok to just forward the PAL implementation to the GCToOSInterface for this instead of maintaining a duplicate.