| |||
| Home > Linker > Including library members | |||
An object file may contain references to external objects (functions and variables). The linker attempts to resolve these references by matching them to definitions found in other object files and libraries. A library is a collection of AOF files stored in an ARM Library Format file. Usually, at least one library file is specified in the input list. The important differences between object files and libraries are:
each object file in the input list appears in the output unconditionally, whether or not anything refers to it
a member from a library is included in the output if, and only if, an object file or an already-included library member makes a non-weak reference to it.