From 7746d288d73bf008d9ccb036832442c7bc3b888b Mon Sep 17 00:00:00 2001 From: 张世争 Date: Tue, 8 Mar 2022 12:03:41 +0800 Subject: 优化bsp/simulator自动初始化 (#5634) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/rtdef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/rtdef.h b/include/rtdef.h index c6ea284ddf..920fa8dd40 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -214,7 +214,7 @@ typedef int (*init_fn_t)(void); const char* fn_name; }; #define INIT_EXPORT(fn, level) \ - const char __rti_level_##fn[] = level"__rt_init_"#fn; \ + const char __rti_level_##fn[] = ".rti_fn." level; \ const char __rti_##fn##_name[] = #fn; \ __declspec(allocate("rti_fn$f")) \ RT_USED const struct rt_init_desc __rt_init_msc_##fn = \ @@ -226,7 +226,7 @@ typedef int (*init_fn_t)(void); const init_fn_t fn; }; #define INIT_EXPORT(fn, level) \ - const char __rti_level_##fn[] = level"__rt_init_"#fn; \ + const char __rti_level_##fn[] = ".rti_fn." level; \ __declspec(allocate("rti_fn$f")) \ RT_USED const struct rt_init_desc __rt_init_msc_##fn = \ {__rti_level_##fn, fn }; -- cgit v1.3.1