You copied the Doc URL to your clipboard.

Considerations when working with library files

Be aware of the following:

  • A library differs from a shared object or Dynamic Link Library (DLL) in that:

    • symbols are imported from a shared object or DLL

    • code or data for symbols is extracted from an archive into the file being linked.

  • Linking with an object library file might not produce the same results as linking with all the object files collected into the object library file. This is because the linker processes the input list and libraries differently:

    • Each object file in the input list appears in the output unconditionally, although unused areas are eliminated if the armlink --remove option is specified.

    • A member of a library file is only included in the output if it is referred to by an object file or a previously processed library file.

    The linker recognizes a collection of ELF files stored in an ar format file as a library. The contents of each ELF file form a single member in the library.

See also

Reference

Linker Reference:

Was this page helpful? Yes No