Skip to content

Commit c2273a5

Browse files
t-msnpuranjaymohan
authored andcommitted
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>
1 parent daf145b commit c2273a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kpatch-build/create-diff-object.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,6 +1705,9 @@ static void kpatch_replace_sections_syms(struct kpatch_elf *kelf)
17051705
*/
17061706
} else if (target_off == start && target_off == end) {
17071707

1708+
if(kpatch_is_mapping_symbol(kelf, sym))
1709+
continue;
1710+
17081711
/*
17091712
* Allow replacement for references to
17101713
* empty symbols.

0 commit comments

Comments
 (0)