浏览代码

[modify][components][utilities]Modify the gcc section definition of a Var Export component

WillianChan 3 年之前
父节点
当前提交
5a020de4e8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/utilities/var_export/var_export.h

+ 1 - 1
components/utilities/var_export/var_export.h

@@ -47,7 +47,7 @@ typedef struct ve_iterator ve_iterator_t;
     const char _vexp_##identi##_module[] RT_SECTION(".rodata.vexp") = #module;  \
     const char _vexp_##identi##_identi[] RT_SECTION(".rodata.vexp") = #identi;  \
     RT_USED const struct ve_exporter _vexp_##module##identi                     \
-    RT_SECTION("VarExpTab") =                                                   \
+    RT_SECTION(#module".VarExpTab."#identi) =                                   \                                               \
     {                                                                           \
         _vexp_##identi##_module,                                                \
         _vexp_##identi##_identi,                                                \