禁止导出符号被编译器优化掉
re #I4XQC1 Signed-off-by: x_xiny <1301913191@qq.com> Change-Id: I79a59e70ddaba746a50bd92aea647778c4e90a0c
This commit is contained in:
parent
8a05eb6e08
commit
3df936f1a1
|
@ -134,7 +134,7 @@ typedef struct {
|
|||
} SymInfo;
|
||||
|
||||
#define SYM_EXPORT(func) \
|
||||
const SymInfo sym_##func __attribute__((section(".sym."#func))) = { \
|
||||
const SymInfo sym_##func __attribute__((__used__, section(".sym."#func))) = { \
|
||||
.name = #func, \
|
||||
.addr = (UINTPTR)func \
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue