← Back to KHAO

Tech ·

Restartable Sequences

2 min read

Compiled by KHAO Editorial — aggregated from 1 source. See llms.txt for citation guidance.

◌ Single Source

[Picture of Tux the Linux penguin mascot enthusiastically flapping looking down at a black circle loop with an arrowhead pointing over an egg, with arm64 assembly instructions inside].

In this case, Hacker News is using the section name.rodata.rseq because the standard GNU linker scripts (e.g. /usr/lib/x86_64-linux-gnu/ldscripts/elf_x86_64.x ) are hard-coded to recognize sections named.rodata or.rodata.* and then puts them into an ELF program header segment that'll be marked PROT_READ on process startup.

Key facts

Summary

May 31 st, 2026 @ justine's web page. The best kept secret at the frontier of system programming right now is the Linux 4.18+ (c. 2018) concept of restartable sequences or rseq for short. It's currently only possible to use rseq on Linux using handwritten assembly code. So far the only software the reporter has seen using rseq is tcmalloc, jemalloc, glibc, and cosmopolitan. System programmers who don't have a workstation like the ones above are going to be left behind like a dinosaur, with no opportunity to pluck the low hanging fruit of 10x performance optimizations.

Read full article at justine.lol →