Berildocs GitHub

Memory cards

Linking resolves symbols and applies relocations

confidence: mediumupdated: 2026-11-25status: activecompilerlinkerrelocation

Claim#

The linker maps sections, resolves symbols and rewrites addresses. Static and dynamic linking differ in when.

Test#

Inspect relocations and the symbol table. Compare a static and a dynamic build.

Proof#

A correct address and a resolved symbol.

Failure modes#

A duplicate symbol or a missing relocation is a load failure. Lazy binding hides cost until the first call.