mirror of
https://github.com/dynup/kpatch
synced 2025-01-02 10:42:01 +00:00
Add "__addressable_" to maybe_discarded_sym().
Starting with 1b1eeca7e4c1 "init: allow initcall tables to be emitted using relative references" [1] __init functions are generating an "__addressable_" symbol in a ".discarded.addressable" section so it does not show up in final vmlinux triggering find_local_syms failures. Add "_addressable_" to the list in maybe_discarded_sym(). [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1b1eeca7e4c19fa76d409d4c7b338dba21f2df45 Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
7305d6c29a
commit
722d27f6bd
@ -80,7 +80,8 @@ static int maybe_discarded_sym(const char *name)
|
||||
*/
|
||||
if (!strncmp(name, "__exitcall_", 11) ||
|
||||
!strncmp(name, "__brk_reservation_fn_", 21) ||
|
||||
!strncmp(name, "__func_stack_frame_non_standard_", 32))
|
||||
!strncmp(name, "__func_stack_frame_non_standard_", 32) ||
|
||||
!strncmp(name, "__addressable_", 14))
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user