Using the linker

The linker combines the contents of one or more object files with selected parts of one or more object libraries to produce an image or object file.

Typically, you invoke the linker as follows:

armlink [options] file_1 ... file_n

Show/hideLinking example

To link the object file shapes.o, use the command:

armlink shapes.o --info totals -o shapes.axf



Specifies the output file as shapes.axf.

--info totals

Tells the linker to display totals of the Code and Data sizes for input objects and libraries.

Show/hideSee also


Linker Reference:

Copyright © 2011 ARM. All rights reserved.ARM DUI 0592A