libbpf: Fix ELF symbol visibility update logic
mainline inclusion from mainline-5.14-rc1 commit 247b8634 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5EUVD CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=247b8634e6446dbc8024685f803290501cba226f ------------------------------------------------- Fix silly bug in updating ELF symbol's visibility. Fixes: a4634922 ("libbpf: Add linker extern resolution support for functions and global variables") Signed-off-by: NAndrii Nakryiko <andrii@kernel.org> Signed-off-by: NAlexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20210507054119.270888-6-andrii@kernel.org (cherry picked from commit 247b8634) Signed-off-by: NWang Yufen <wangyufen@huawei.com>
Showing
想要评论请 注册 或 登录