Berildocs GitHub

Memory cards

Dynamic loading runs initializers before main

confidence: mediumupdated: 2026-11-25status: activeruntimedynloadinit-order

Claim#

The loader maps the library, resolves symbols and runs constructors in dependency order. Interposition changes the target.

Test#

Load a plugin with a constructor. Check the order and the symbol that resolves.

Proof#

A predictable init order and a resolved symbol.

Failure modes#

A constructor that depends on another library's state is fragile. An interposed symbol changes behavior silently.