Elf2: create a new linker from scratch by jacobly0 · Pull Request #25299 · ziglang/zig
Release Notes
The new linker can be used with -fnew-linker in the CLI, or by setting exe.use_new_linker = true in a build script.
It is already the default when passing -fincremental and targeting ELF.
The performance is fast enough that there's no longer much of a benefit to exposing a -Dno-bin build step. You might as well keep codegen and linking always enabled because the compilation speed difference is negligible, and then you get an executable at the end.
Performance Data Points
Old linker...
Read more at github.com