hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm/kernel/module-plts.c
....@@ -256,7 +256,7 @@
256256 /* sort by type and symbol index */
257257 sort(rels, numrels, sizeof(Elf32_Rel), cmp_rel, NULL);
258258
259
- if (strncmp(secstrings + dstsec->sh_name, ".init", 5) != 0)
259
+ if (!module_init_layout_section(secstrings + dstsec->sh_name))
260260 core_plts += count_plts(syms, dstsec->sh_addr, rels,
261261 numrels, s->sh_info);
262262 else