mirror of
https://github.com/dynup/kpatch
synced 2025-01-20 03:50:42 +00:00
b49bfac8fa
Right now, there is a case where a symbol is included but not its section. This is the case when the symbol is a rela dependency of another section by the symbol section (the object or function) has not changed. When we migrate the included symbols over to the output kelf structure however, these symbols are still referencing their old non-included section via their sec fields. This is a bug. This commit adds code to the symbol migration to test whether the symbol's section was also included. If so, it updates the symbol's section index. If not it sets the section index to UNDEF and its sec field to NULL. Signed-off-by: Seth Jennings <sjenning@redhat.com> |
||
---|---|---|
.. | ||
add-patches-section.c | ||
create-diff-object.c | ||
kpatch-build | ||
link-vmlinux-syms.c | ||
list.h | ||
Makefile |