Merge pull request #459 from grissiom/fix-keil-keep-symbol

Fix keil keep symbol
This commit is contained in:
Bernard Xiong 2015-04-14 20:39:57 +08:00
commit f1e268607c
2 changed files with 4 additions and 4 deletions

View File

@ -28,10 +28,10 @@ msh.c
CPPPATH = [cwd] CPPPATH = [cwd]
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.CROSS_TOOL == 'keil':
LINKFLAGS = ' --keep __fsym_*' LINKFLAGS = ' --keep *.o(FSymTab)'
if not GetDepend('FINSH_USING_MSH_ONLY'): if not GetDepend('FINSH_USING_MSH_ONLY'):
LINKFLAGS = LINKFLAGS + ' --keep __vsym_* ' LINKFLAGS = LINKFLAGS + ' --keep *.o(VSymTab) '
else: else:
LINKFLAGS = '' LINKFLAGS = ''

View File

@ -9,9 +9,9 @@ if rtconfig.CROSS_TOOL == 'keil':
# add more link flags for module and components_init. # add more link flags for module and components_init.
LINKFLAGS = '' LINKFLAGS = ''
if GetDepend('RT_USING_MODULE'): if GetDepend('RT_USING_MODULE'):
LINKFLAGS = ' --keep __rtmsym_* ' LINKFLAGS += ' --keep *.o(RTMSymTab) '
if GetDepend('RT_USING_COMPONENTS_INIT'): if GetDepend('RT_USING_COMPONENTS_INIT'):
LINKFLAGS = ' --keep __rt_init* ' LINKFLAGS += ' --keep *.o(.rti_fn.*) '
else: else:
LINKFLAGS = '' LINKFLAGS = ''