Tag · Static libraries

2 articles to explore.

[The World of Linkers—Lab 07] Archives on Demand: A Fixed Point of Member Extraction
A static library is a container of object files, not one larger object. This lab parses the ar format, extracts members one at a time for unresolved global names, and rescans each archive until no further member is selected.
Read article
[The World of Linkers—Theory 03] One Name, Several Definitions: Who Wins?
Start with a runnable two-file program, then change only the link inputs to expose missing definitions, duplicate definitions, weak symbols, common storage, archive extraction, and the limits of ordinary type checking.
Read article