2.4 The ARM linker command

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_1file_n

Linking an example object file

To link the object file shapes.o, enter:
armlink shapes.o --info totals -o shapes.axf
        
-o

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.

Non-ConfidentialPDF file icon PDF versionARM DUI0529M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.