[Kernel] Add .name section for exported symbols.

This commit is contained in:
Bernard Xiong 2015-09-02 12:09:46 +08:00
parent 1079727afb
commit dc194cd7b6
1 changed files with 1 additions and 1 deletions

View File

@ -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, \