ARM Technical Support Knowledge Articles

LINKER COMMAND AND RESPONSE FILES

Applies to: uVision (Version 1) IDE

Answer


Information in this article applies to:


SYMPTOMS

I set the option in the BL51 Code Banking Linker Options dialog to keep the Linker Response File. I then built my project, went back to the BL51 Options dialog and set the response file as my Linker Command File. When I rebuilt my project I got the following error:

Fatal Error 204: Invalid Keyword

Why won't my Command File work, and is there a difference between the Response File and the Command File?

CAUSE

The Linker Response File (.lnk) contains every command line argument that was passed to the linker during the last build.

The Linker Command File (.lin) contains only Linker directives and does not include the list of .OBJ files and .LIB files that are included in the target. This means that a Linker Response File cannot simply be used as a Linker Command File.

RESOLUTION

You can either reduce the Response File to only contain directives, or you can generate a Command File.

To generate a Command File...

When you create a linker command file, the file created will include the directives you currently have selected. For example:

RS(256) PL(68) PW(78)

Note that the files included in the link are not listed. These are obtained from the list of files included in the project and are automatically inserted in the link by uVision.

MORE INFORMATION

Article last edited on: 2005-07-15 12:10:08

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential