How the linker performs library searching, selection, and scanning

The linker always searches user libraries before the ARM libraries. If you specify the --no_scanlib command-line option, the linker does not search for the default ARM libraries and uses only those libraries that are specified in the input file list to resolve references.

The linker creates an internal list of libraries as follows:

  1. Any libraries explicitly specified in the input file list are added to the list.

  2. The user-specified search path is examined to identify ARM standard libraries to satisfy requests embedded in the input objects.

    The best-suited library variants are chosen from the searched directories and their subdirectories. Libraries supplied by ARM have multiple variants that are named according to the attributes of their members.

Be aware of the following differences between the way the linker adds object files to the image and the way it adds libraries to the image:

Unresolved references to weak symbols do not cause library members to be loaded.

Show/hideSee also

Copyright © 2007-2008, 2011-2012 ARM. All rights reserved.ARM DUI 0377D