rename .name section to .rodata.name section
This commit is contained in:
parent
a0de58a008
commit
7dfac0f78e
|
@ -229,8 +229,8 @@ struct finsh_sysvar* finsh_sysvar_lookup(const char* name);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define FINSH_FUNCTION_EXPORT_CMD(name, cmd, desc) \
|
#define FINSH_FUNCTION_EXPORT_CMD(name, cmd, desc) \
|
||||||
const char __fsym_##cmd##_name[] SECTION(".name") = #cmd; \
|
const char __fsym_##cmd##_name[] SECTION(".rodata.name") = #cmd; \
|
||||||
const char __fsym_##cmd##_desc[] SECTION(".name") = #desc; \
|
const char __fsym_##cmd##_desc[] SECTION(".rodata.name") = #desc; \
|
||||||
const struct finsh_syscall __fsym_##cmd SECTION("FSymTab")= \
|
const struct finsh_syscall __fsym_##cmd SECTION("FSymTab")= \
|
||||||
{ \
|
{ \
|
||||||
__fsym_##cmd##_name, \
|
__fsym_##cmd##_name, \
|
||||||
|
@ -239,8 +239,8 @@ struct finsh_sysvar* finsh_sysvar_lookup(const char* name);
|
||||||
};
|
};
|
||||||
|
|
||||||
#define FINSH_VAR_EXPORT(name, type, desc) \
|
#define FINSH_VAR_EXPORT(name, type, desc) \
|
||||||
const char __vsym_##name##_name[] SECTION(".name") = #name; \
|
const char __vsym_##name##_name[] SECTION(".rodata.name") = #name; \
|
||||||
const char __vsym_##name##_desc[] SECTION(".name") = #desc; \
|
const char __vsym_##name##_desc[] SECTION(".rodata.name") = #desc; \
|
||||||
const struct finsh_sysvar __vsym_##name SECTION("VSymTab")= \
|
const struct finsh_sysvar __vsym_##name SECTION("VSymTab")= \
|
||||||
{ \
|
{ \
|
||||||
__vsym_##name##_name, \
|
__vsym_##name##_name, \
|
||||||
|
|
|
@ -42,7 +42,7 @@ __declspec(allocate("RTMSymTab$f"))const char __rtmsym_##symbol##_name[] = "__vs
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define RTM_EXPORT(symbol) \
|
#define RTM_EXPORT(symbol) \
|
||||||
const char __rtmsym_##symbol##_name[] SECTION(".name") = #symbol; \
|
const char __rtmsym_##symbol##_name[] SECTION(".rodata.name") = #symbol; \
|
||||||
const struct rt_module_symtab __rtmsym_##symbol SECTION("RTMSymTab")= \
|
const struct rt_module_symtab __rtmsym_##symbol SECTION("RTMSymTab")= \
|
||||||
{ \
|
{ \
|
||||||
(void *)&symbol, \
|
(void *)&symbol, \
|
||||||
|
|
Loading…
Reference in New Issue