ARM Technical Support Knowledge Articles

AVOIDING WARNING 7 (MODULE NAME NOT UNIQUE)

Applies to: LX51 Linker/Locator

Answer


Information in this article applies to:


QUESTION

I'm following the example in the document GENERAL: CALLING BOOT LOADER FUNCTIONS FROM USER APPLICATION and I've added the boot code (object file) to the main code with the option Link Publics Only.

However, I new receive the following linker message:

WARNING L7: MODULE NAME NOT UNIQUE

on the STARTUP module. How can I avoid this warning?

ANSWER

You can give a different module name to the STARTUP file that is part of the main application by changing the source line:

NAME    ?C_STARTUP

to

NAME    ?C_STARTUP_MAIN

The assembler directive NAME defines the module name and avoids the name conflict at the linker level.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-18 18:51:50

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