Keil™, An ARM® Company

RealView Linker and Utilities Guide

Ordering command-line options

2.1.3. Ordering command-line options

In general, command-line options can appear in any order in a single linker invocation. However, the effects of some options depend on how they are combined with other related options. For example, the ‑‑scatter option cannot be used with any of the memory map options. See Specifying memory map information for the image.

Where options override previous options on the same command line, the last one found takes precedence. Where an option does not follow this rule, this is noted in the description. Use the ‑‑show_cmdline option to see how the linker has processed the command line. The commands are shown in their preferred form, and the contents of any via files are expanded.

See Specifying an input file list for more information on the ordering priority of input files.

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