Skip to content

Commit

Permalink
lookup.c: maybe_discarded_sym() add __pfx_ pattern
Browse files Browse the repository at this point in the history
Linux-6.4 generates __pfx_{func} symbols for each function symbol {func},
however, vmlinux symtab will not contain these symbols, which will cause
error when matching local symbols for changed objects.

Signed-off-by: hubin <[email protected]>
  • Loading branch information
hubin authored and root committed Sep 16, 2023
1 parent 922cd45 commit 764bb92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kpatch-build/lookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ static bool maybe_discarded_sym(const char *name)
!strncmp(name, "__brk_reservation_fn_", 21) ||
!strncmp(name, "__func_stack_frame_non_standard_", 32) ||
strstr(name, "__addressable_") ||
strstr(name, "__pfx_") ||
strstr(name, "__UNIQUE_ID_") ||
!strncmp(name, ".L.str", 6) ||
is_ubsan_sec(name))
Expand Down

0 comments on commit 764bb92

Please sign in to comment.