Recursive Call to Segment
Segment: callee-segment-name
Caller: caller-segment-name
Description
The linker has detected a recursive function call to a segment.
Recursive calls are not allowed when one of the functions in the call
tree is using overlayable data segments.
The recursive call tree is listed in the linker MAP file under the
section PROGRAM RECURSIONS REMOVED FROM CALL TREE.
Cause
The segment specified (callee-segment-name) is called
recursively by the specified caller(s)
(caller-segment-name).
Resolution
Remove the recursive calls from the program. If you must use
recursion, consider the reentrant keyword in the compiler.
*** WARNING L13: RECURSIVE CALL TO FUNCTION
CALLED: f1?_/OS1
CALLER: f3?_/OS1
The complete call tree with the recursion is shown in the linker
MAP file. On of the functions in this call tree has overlayable data
segments.
PROGRAM RECURSIONS REMOVED FROM CALL TREE
=========================================
+--> f1?_/OS1
| | f2b/OS1 function with overlayable data segments
<--+ f3?_/OS1
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.