summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-05-05 10:19:47 +0800
committerBernard Xiong <[email protected]>2015-05-05 10:19:47 +0800
commitf8c82b05bb62df8b5b88cc17f4c7b53a9bc1c7ad (patch)
tree9d45cb2efff877c8fdecaa77d4da6f933743c994 /components
parentccc89001e57f4f171598d3d233ac1c64614e3af0 (diff)
[finsh] Fix compiling issue in finsh.
Diffstat (limited to 'components')
-rw-r--r--components/finsh/SConscript4
-rw-r--r--components/finsh/msh_cmd.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/components/finsh/SConscript b/components/finsh/SConscript
index edb52eb357..8d6729e4a7 100644
--- a/components/finsh/SConscript
+++ b/components/finsh/SConscript
@@ -28,10 +28,10 @@ msh.c
CPPPATH = [cwd]
if rtconfig.CROSS_TOOL == 'keil':
- LINKFLAGS = ' --keep __fsym_*'
+ LINKFLAGS = ' --keep *.o(FSymTab)'
if not GetDepend('FINSH_USING_MSH_ONLY'):
- LINKFLAGS = LINKFLAGS + ' --keep __vsym_* '
+ LINKFLAGS = LINKFLAGS + ' --keep *.o(VSymTab) '
else:
LINKFLAGS = ''
diff --git a/components/finsh/msh_cmd.c b/components/finsh/msh_cmd.c
index 206b640c16..cc8b2dce0a 100644
--- a/components/finsh/msh_cmd.c
+++ b/components/finsh/msh_cmd.c
@@ -280,6 +280,7 @@ FINSH_FUNCTION_EXPORT_ALIAS(cmd_time, __cmd_time, Execute command with time.);
int cmd_free(int argc, char** argv)
{
extern void list_mem(void);
+ extern void list_memheap(void);
#ifdef RT_USING_MEMHEAP_AS_HEAP
list_memheap();