[Kernel] Add .name section for exported symbols.
This commit is contained in:
parent
1079727afb
commit
dc194cd7b6
|
@ -42,7 +42,7 @@ __declspec(allocate("RTMSymTab$f"))const char __rtmsym_##symbol##_name[] = "__vs
|
|||
|
||||
#else
|
||||
#define RTM_EXPORT(symbol) \
|
||||
const char __rtmsym_##symbol##_name[] = #symbol; \
|
||||
const char __rtmsym_##symbol##_name[] SECTION(".name") = #symbol; \
|
||||
const struct rt_module_symtab __rtmsym_##symbol SECTION("RTMSymTab")= \
|
||||
{ \
|
||||
(void *)&symbol, \
|
||||
|
|
Loading…
Reference in New Issue