函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:kernel\module.c Create Date:2022-07-27 11:59:39
首页 Copyright©Brick

3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
static int post_relocation(struct module *mod, const struct load_info *info)
{
    /* Sort exception table now relocations are done. */
    sort_extable(mod->extable, mod->extable + mod->num_exentries);
 
    /* Copy relocated percpu area over. */
    percpu_modcopy(mod, (void *)info->sechdrs[info->index.pcpu].sh_addr,
               info->sechdrs[info->index.pcpu].sh_size);
 
    /* Setup kallsyms-specific fields. */
    add_kallsyms(mod, info);
 
    /* Arch-specific module finalizing. */
    return module_finalize(info->hdr, info->sechdrs, mod);
}