Keil™, An ARM® Company

RealView Linker and Utilities Guide

The ARM librarian

6.3. The ARM librarian

The ARM librarian, armar, enables sets of object files or libraries to be collected together and maintained in libraries. Such a library can then be passed to the linker in place of several object files. However, linking with an object library file does not necessarily 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.

For more information on how the linker processes its input files, see Chapter 2 The Linker Command Syntax.

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0377A