Skip to content

Commit 8f29263

Browse files
Misono Tomohiropuranjaymohan
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 72f6a88 commit 8f29263

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

kpatch-build/create-diff-object.c

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

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

0 commit comments

Comments
 (0)