kernel/arch/arm64/kernel/module-plts.c
.. .. @@ -7,6 +7,7 @@ 7 7 #include <linux/ftrace.h> 8 8 #include <linux/kernel.h> 9 9 #include <linux/module.h> 10 +#include <linux/moduleloader.h>10 11 #include <linux/slab.h> 11 12 #include <linux/sort.h> 12 13 .. .. @@ -376,7 +377,7 @@ 376 377 if (nents) 377 378 sort(rels, nents, sizeof(Elf64_Rela), cmp_rela, NULL); 378 379 379 - if (!str_has_prefix(secstrings + dstsec->sh_name, ".init"))380 + if (!module_init_layout_section(secstrings + dstsec->sh_name))380 381 core_plts += count_plts(syms, rels, numrels, 381 382 sechdrs[i].sh_info, dstsec); 382 383 else