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:
parent
1540dc2d67
commit
000b0ec4a1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue