ARM Technical Support Knowledge Articles

WARNING 16 (UNCALLED SEGMENT, IGNORED FOR OVERLAY ...)

Applies to: BL51 Code-banking Linker/Locator

Answer


Information in this article applies to:


QUESTION

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

WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: segment-name

ANSWER

This warning occurs when functions which are not called are contained in a program (e.g. for test purposes). The function specified is excluded from the overlay process in this case. Often this warning is accompanied by

ERROR L107: ADDRESS SPACE OVERFLOW

If you fix the uncalled warning, then Error 107 is often cleared as well.

There are two ways to solve this problem.

  1. Call the uncalled function from somewhere in your program.
  2. Remove or #if out the function that is not called. You can do that using #if 0 in front of and #endif after the uncalled function. For example:
    #if 0
    void uncalled_function (void)
    {
    }
    #endif
    

MORE INFORMATION

SEE ALSO 

Article last edited on: 2005-07-15 16:21:57

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