arch/riscv: Integrated that use libs/libc with newlib for arm64. [1/1]

PD#SWPL-68240

Problem:
Add new feature.

Solution:
Add wrap for calloc.

Verify:
N/A

Change-Id: I519814b148c9c4d5c110bfe3cae2e045b8c08e13
Signed-off-by: Xiaohu.Huang <xiaohu.huang@amlogic.com>
diff --git a/compiler_options.cmake b/compiler_options.cmake
index 78d4932..5ee6fd5 100644
--- a/compiler_options.cmake
+++ b/compiler_options.cmake
@@ -1,11 +1,10 @@
 set(common_flags "")
-
 set(c_flags "")
 
 set(linker_flags "-Wl,--print-memory-usage,-Map=${TARGET_NAME}.map,--gc-sections")
 
 if(CONFIG_LIBC_STD)
-set(linker_flags "${linker_flags},--wrap=_malloc_r,--wrap=_free_r,--wrap=_realloc_r")
+set(linker_flags "${linker_flags},--wrap=_malloc_r,--wrap=_free_r,--wrap=_realloc_r,--wrap=_calloc_r")
 endif()
 
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=rv32imc -mabi=ilp32 -DN200_REVA=1 -D__ASM -DSOC_${SOC} -imacros${AUTOCONF_H}")