Made a small demo for generating COFF .obj files for windows, it does enough to print a simple formatted string (ping me if you've got questions or see something wrong in the code): https://gist.github.com/RealNeGate/428a274496ce9852e06f9db1852b6cc2