news/2026_10_09_std_binaries.md

rs built a std binary with zero LLVM codegen

the pure-Rust toolchain of rs reached std programs. the codegen backend emits rlibs through rustc's own archive builder, with no LLVM, no ranlib and no system linker on that path, so a real crate compiles as an rlib and is consumed downstream; the crate verified was itoa 1.0.11. the backend then hands the rlibs of the dependency closure to the project's Mach-O linker, which pulls archive members on demand, and a std binary builds with zero LLVM codegen. every emitted symbol carries the Darwin underscore prefix, so the objects link against LLVM-built rlibs, and an allocator shim forwards to the libSystem malloc family.

the other commits of the day are the faults that binary met at run time, each fixed at its cause. pointers to backing statics are rematerialized per basic block, after which the std and itoa test binary ran main to completion. the thread-local link path was completed (the TLV relocations, the section type bits, 8-byte alignment of __thread_vars, the descriptor rewrite), so std binaries load with working thread-local storage. the no-alloc-shim guard is emitted as a function. local GOT slots are synthesized, after which panics print, and call arguments are set up in two phases. the commit that added the GOT slots records 173 workspace tests green, 11 of 11 codegen integration tests and 2 of 2 linker integration tests, and names the next fault: a pointer corruption in btree code.

sources

Graph