ARM Technical Support Knowledge Articles

WARNING 15 (MULTIPLE CALL TO SEGMENT)

Applies to: BL51 Code-banking Linker/Locator

Answer


Information in this article applies to:


QUESTION

When I attempt to link my program, the linker responds with the following diagnostic:

WARNING L15:  MULTIPLE CALL TO SEGMENT
SEGMENT:  segment-name
CALLER1:  segment-name
CALLER2:  segment-name

ANSWER

The specified segment is called from two levels, CALLER1 and CALLER2; e.g., main and an interrupt function.

This has the same effect as a recursive call and may thus lead to the overwriting of parameters or data. If you are calling a function from a main level and an interrupt level, the main level segment is reported as c_startup which is defined in the startup file (NOT main). This can cause some confusion as the segment name isn't defined by the user and the source file name may be unclear.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-15 16:24:46

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