GCC - GNU Toolchain (@gnutools) header
GCC - GNU Toolchain (@gnutools) profile picture

GCC, Binutils, GDB, GLIBC. The system compiler for the FOSS and Linux software ecosystem. Continually Improving.

Joined July 2013
Photo by GCC - GNU Toolchain (@gnutools)Photo by GCC - GNU Toolchain (@gnutools)Photo by GCC - GNU Toolchain (@gnutools)Photo by GCC - GNU Toolchain (@gnutools)Photo by GCC - GNU Toolchain (@gnutools)Photo by GCC - GNU Toolchain (@gnutools)Photo by GCC - GNU Toolchain (@gnutools)Photo by GCC - GNU Toolchain (@gnutools)
The CC 2027 website is up: conf.researchr.org/home/CC-2… Submit your work until Dec. 3rd and join us in Salt Lake City!
1
4
281
GCC - GNU Toolchain retweeted
I just released mold 3.0.0! This is the first Rust version of mold, rewritten from C++ with performance on par with 2.42.1. The goal of mold 3.x is to close the remaining GNU ld compatibility gaps and make mold the default linker in Linux distros. github.com/rui314/mold/relea…
42
214
11
1,435
74,183
GCC - GNU Toolchain retweeted
We'll also be at LPC on Monday with an update on gccrs and to discuss the compiler's progress which directly concerns the kernel and are looking forward to meet everyone there :)
3
6
714
GCC - GNU Toolchain retweeted
Our talk at RustConf 2026 is now available: youtu.be/GzxLOCigy60 as well as more details on our recent progress in our August monthly report: rust-gcc.github.io/2026/09/0…
1
3
17
1,830
GCC - GNU Toolchain retweeted
mold in Rust has landed in github.com/rui314/mold! The code doesn't look too bad; it looks like conventional Rust. But I'm still new to the language, so let me know if you find anything that could be improved!
41
123
4
921
60,035
GCC - GNU Toolchain retweeted
This discussion in the ⁠binutils⁠ mailing list is interesting. I had no idea the target binary could easily detect and interact with Valgrind directly. Valgrind provides a header (⁠valgrind.h⁠) to help the client do exactly that. A change in the ⁠gas⁠ assembler that optimized ⁠xchg reg, reg⁠ to ⁠mov reg, reg⁠ in specific conditions broke Valgrind. That optimization yielded more efficient code because the ⁠mov⁠ instruction is cheaper. Valgrind implements a trapdoor—a "hypercall"-like mechanism between the target and Valgrind, officially called the Client Request Mechanism. This trapdoor relies on a magic sequence of preamble instructions followed immediately by an ⁠xchg⁠ instruction. Because the ⁠gas⁠ optimization replaced that ⁠xchg⁠ with a ⁠mov⁠, Valgrind was seeing a ⁠mov⁠ and failing to recognize the request. The problem occurred both when Valgrind itself was built with the optimization, and when target binaries were built with the client-request mechanism through the ⁠valgrind.h⁠ file. ⁠systemd⁠ was one of the affected projects. Because there are many projects out there built with the Valgrind header that hardcode the expectation of an ⁠xchg⁠ instruction, the optimization had to be reverted. That problem resulted in the following error in Valgrind: vex amd64->IR: unhandled instruction bytes: 0x48 0xC1 0xC7 0x3 0x48 0xC1 0xC7 0xD 0x48 0xC1 vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x0 ESC=NONE vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 ==568970== valgrind: Unrecognised instruction at address 0x484f1e9. [PATCH 1/2] x86: optimize XCHG to MOV for same-register forms sourceware.org/pipermail/bin… x86: Disable XCHG to MOV optimization sourceware.org/git/?p=binuti… Here is the official documentation of the Client Request Mechanism implemented in Valgrind: valgrind.org/docs/manual/man…
2
12
1
67
4,183
GCC - GNU Toolchain retweeted
Rust Coreutils 0.11 Released With Some Nifty Debug Helper Messages Very nice error messages! Plus PGO release builds now for some big performance improvements! And hitting above 95% compatibility against @gnutools Coreutils. phoronix.com/news/Rust-Coreu…
6
56
5,521