hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/arm64/kernel/module-plts.c
....@@ -7,6 +7,7 @@
77 #include <linux/ftrace.h>
88 #include <linux/kernel.h>
99 #include <linux/module.h>
10
+#include <linux/moduleloader.h>
1011 #include <linux/slab.h>
1112 #include <linux/sort.h>
1213
....@@ -376,7 +377,7 @@
376377 if (nents)
377378 sort(rels, nents, sizeof(Elf64_Rela), cmp_rela, NULL);
378379
379
- if (!str_has_prefix(secstrings + dstsec->sh_name, ".init"))
380
+ if (!module_init_layout_section(secstrings + dstsec->sh_name))
380381 core_plts += count_plts(syms, rels, numrels,
381382 sechdrs[i].sh_info, dstsec);
382383 else