From 0e2c61d460d32ca03449d2a552150ae368df245a Mon Sep 17 00:00:00 2001 From: liuqiangmin Date: Fri, 28 Oct 2022 13:41:46 +0800 Subject: [PATCH] Fixed support for GLOBAL relocation Signed-off-by: liuqiangmin --- src/arch/aarch64/arch_strip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/aarch64/arch_strip.c b/src/arch/aarch64/arch_strip.c index 561dd45..30ae66a 100644 --- a/src/arch/aarch64/arch_strip.c +++ b/src/arch/aarch64/arch_strip.c @@ -82,7 +82,7 @@ kpatch_arch_fixup_rela_update_tls(kpatch_objinfo *origbin, char *symname, *tmp; /* Do nothing for Local TLS symbol */ - if (GELF_ST_BIND(sym->st_info) != STB_LOCAL) + if (GELF_ST_BIND(sym->st_info) == STB_LOCAL) return 0; symname = (char *)kpatch_objinfo_strptr(patch, -- Gitee