From 3df936f1a19e111ddc27c7f3495249bd3e52e47c Mon Sep 17 00:00:00 2001 From: x_xiny <1301913191@qq.com> Date: Thu, 23 Jun 2022 17:31:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E5=AF=BC=E5=87=BA=E7=AC=A6?= =?UTF-8?q?=E5=8F=B7=E8=A2=AB=E7=BC=96=E8=AF=91=E5=99=A8=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=8E=89=20re=20#I4XQC1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: x_xiny <1301913191@qq.com> Change-Id: I79a59e70ddaba746a50bd92aea647778c4e90a0c --- components/dynlink/los_dynlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dynlink/los_dynlink.h b/components/dynlink/los_dynlink.h index d758e3bc..ad7b1973 100644 --- a/components/dynlink/los_dynlink.h +++ b/components/dynlink/los_dynlink.h @@ -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 \ };