Well this is roughly my final draft of the refactor. Just a ton of moving things around... Is there a nice way to build/test/run this against as many platforms as possible?
https://github.com/arcnmx/rust/commit/4aefe0d0833e635a53487c19ab34aa585c3b2212
Also, see this commit as an example/outline of what needs to be implemented to port libstd to an entirely new platform...
https://github.com/arcnmx/rust/commit/30d290f6cd456bf64a5be0930463dc7525ab4a90