forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
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