Keil Logo

Considerations when working with library files

1.2 Considerations when working with library files

There 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.
Non-ConfidentialPDF file icon PDF versionARM DUI0590F
Copyright © 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.