Skip to content

Commit 783953e

Browse files
ARMC6 keep __user_setup_stackheap symbol when LTO enabled
Fix for the error L6915E: Library reports error: Heap was used, but no heap region was defined
1 parent 8db3b40 commit 783953e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/source/mbed_retarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ extern "C" __value_in_regs struct __argc_argv $Sub$$__rt_lib_init(unsigned heapb
11411141
}
11421142
#endif
11431143

1144-
extern "C" __value_in_regs struct __initial_stackheap __user_setup_stackheap(uint32_t R0, uint32_t R1, uint32_t R2, uint32_t R3)
1144+
MBED_USED extern "C" __value_in_regs struct __initial_stackheap __user_setup_stackheap(uint32_t R0, uint32_t R1, uint32_t R2, uint32_t R3)
11451145
{
11461146
return _mbed_user_setup_stackheap(R0, R1, R2, R3);
11471147
}

0 commit comments

Comments
 (0)