提交 6ca5d2ac 编写于 作者: C Cheng Jian 提交者: Xie XiuQi

livepatch/arm64: delete unuse livepatch.pltcount

euler inclusion
category: feature
Bugzilla: 5507
CVE: N/A

----------------------------------------

In previous versions, kpatch-build front-tools create an
section named livepatch.pltcount to store the number of
the relocations in the size field, we append enough space
in .plt section for the long jump plts by module_frob_arch_sections.
Now, This's no longer needed. just delete it.
Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
Reviewed-by: NLi Bin <huawei.libin@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 716653dd
......@@ -297,17 +297,6 @@ int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
}
#ifdef CONFIG_LIVEPATCH
for (i = 0; i < ehdr->e_shnum; i++) {
if (!strcmp(".livepatch.pltcount",
secstrings + sechdrs[i].sh_name)) {
core_plts += sechdrs[i].sh_size;
sechdrs[i].sh_size = 0;
sechdrs[i].sh_type = SHT_NOBITS;
sechdrs[i].sh_flags = 0;
break;
}
}
if (mod->arch.core.plt)
mod->arch.have_plts = true;
mod->arch.core_plts = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册