Tag · Linker scripts
3 articles to explore.
[The World of Linkers—Lab 11] Seeing Through Indirection: GOT, Relaxation, and Static TLS
2026-10-06
Extend class9's static PIE with GOT slots, the supported mov relaxation, a TLS template, and supplied startup code that installs main-thread TLS.
Read article
[The World of Linkers—Theory 10] When a Program Must Arrange Its Own Memory
2026-10-04
Linker scripts organize input sections and define the address contract for an image. Distinguish file offsets, VMA, and LMA; explain startup mappings, data copying, and BSS clearing; then examine kernel layouts, embedded data, section retention, alignment, and script assertions.
Read article
[The World of Linkers—Theory 05] A Place for Every Section—and an Exit for Dead Code
2026-10-04
Build the bridge from input sections to loadable segments. Compare GNU ld and LLD layouts, calculate file offsets and virtual addresses, trace section garbage collection, and test what happens when a linker script gets page permissions wrong.
Read article