mirror of
https://github.com/dynup/kpatch
synced 2025-04-10 03:01:36 +00:00
create-diff-object: Fix mapping symbol handling on aarch64
It seems mapping symbols in aarch64 elf has section size of 0. So, exclude it in section symbol replacing code just like kpatch_correlate_symbols(). This fixes the data-read-mostly unit test on aarch64. Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com> Signed-off-by: Puranjay Mohan <pjy@amazon.com>
This commit is contained in:
parent
daf145bd82
commit
c2273a549b
@ -1705,6 +1705,9 @@ static void kpatch_replace_sections_syms(struct kpatch_elf *kelf)
|
||||
*/
|
||||
} else if (target_off == start && target_off == end) {
|
||||
|
||||
if(kpatch_is_mapping_symbol(kelf, sym))
|
||||
continue;
|
||||
|
||||
/*
|
||||
* Allow replacement for references to
|
||||
* empty symbols.
|
||||
|
Loading…
Reference in New Issue
Block a user