ARM Technical Support Knowledge Articles

WARNING 5 (CODE SPACE OVERLAP)

Applies to: BL51 Code-banking Linker/Locator

Answer


Information in this article applies to:


QUESTION

I have a project with some assembly files and some C files. When I compile and link my project, I receive the following warning message:

***WARNING L5: CODE SPACE MEMORY OVERLAP FROM: 0000H TO: 0451H

Can you give me any feedback to solve or debug this warning?

ANSWER

This linker warning is issued when 2 or more absolute segments are located at the same address range.

To solve this problem, check your assembly code to make sure that the CSEG at 0 or ORG 0 statements are not used in the code. These force the segment to be an absolute segment (located at address 0000h). When the linker links your program, it cannot relocate the absolute segments and so it must put them where they are defined. If 2 segments are defined to be at address 0000h, the linker generates the warning you have received.

MORE INFORMATION

Article last edited on: 2005-07-19 15:14:18

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