This commit is contained in:
liankong
2025-03-30 19:18:38 +08:00
parent bf2be96b29
commit e68afb04eb

View File

@@ -828,7 +828,7 @@ static void kpm_layout_symtab(struct kpm_module *mod, struct kpm_load_info *info
mod->size += strtab_size; mod->size += strtab_size;
strsect->sh_flags |= SHF_ALLOC; strsect->sh_flags |= SHF_ALLOC;
strsect->sh_entsize = kpm_get_offset(mod, &mod->size, strsect); strsect->sh_entsize = kpm_get_offset2(mod, &mod->size, strsect, info->index.str);
} }
/*----------------------------------------------------------- /*-----------------------------------------------------------