Browse Source

Merge pull request #791 from Yohozzy/master

fix the end of module symbol bug when using iar compiler
Bernard Xiong 8 năm trước cách đây
mục cha
commit
6a08e154ee
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/module.c

+ 1 - 1
src/module.c

@@ -116,7 +116,7 @@ int rt_system_module_init(void)
     _rt_module_symtab_end   = (struct rt_module_symtab *)&RTMSymTab$$Limit;
 #elif defined (__IAR_SYSTEMS_ICC__)
     _rt_module_symtab_begin = __section_begin("RTMSymTab");
-    _rt_module_symtab_end   = __section_begin("RTMSymTab");
+    _rt_module_symtab_end   = __section_end("RTMSymTab");
 #endif
 
 #ifdef RT_USING_SLAB