1.2 Considerations when working with library files

Ther are some considerations you must be aware of when working with library files.

Be aware of the following:

  • A library differs from a shared object or dynamically linked 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.

Related information
--remove, --no_remove linker option
Non-ConfidentialPDF file icon PDF versionARM DUI0476J
Copyright © 2010-2013 ARM. All rights reserved.