arch/risc-v: make common up_allocate_heap weak symbol

The common `up_allocate_heap` is a strong symbol, which leads to
error when building with CONFIG_DEBUG_LINK_WHOLE_ARCHIVE. Make
`up_allocate_heap` weak function to mitigate this problem.

Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
This commit is contained in:
Inochi Amaoto 2024-07-18 08:28:10 +08:00 committed by Xiang Xiao
parent 1540dc2d67
commit 000b0ec4a1

View file

@ -64,7 +64,7 @@
*
****************************************************************************/
void up_allocate_heap(void **heap_start, size_t *heap_size)
void weak_function up_allocate_heap(void **heap_start, size_t *heap_size)
{
board_autoled_on(LED_HEAPALLOCATE);
*heap_start = (void *)g_idle_topstack;