diff options
| author | Bernard Xiong <[email protected]> | 2015-05-05 10:19:47 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-05-05 10:19:47 +0800 |
| commit | f8c82b05bb62df8b5b88cc17f4c7b53a9bc1c7ad (patch) | |
| tree | 9d45cb2efff877c8fdecaa77d4da6f933743c994 /components | |
| parent | ccc89001e57f4f171598d3d233ac1c64614e3af0 (diff) | |
[finsh] Fix compiling issue in finsh.
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/SConscript | 4 | ||||
| -rw-r--r-- | components/finsh/msh_cmd.c | 1 |
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(); |
