Searched refs:relas (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/arch/riscv/kernel/ |
D | module-sections.c | 73 static void count_max_entries(Elf_Rela *relas, int num, in count_max_entries() argument 79 type = ELF_RISCV_R_TYPE(relas[i].r_info); in count_max_entries() 81 if (!duplicate_rela(relas, i)) in count_max_entries() 84 if (!duplicate_rela(relas, i)) in count_max_entries() 124 Elf_Rela *relas = (void *)ehdr + sechdrs[i].sh_offset; in module_frob_arch_sections() local 135 count_max_entries(relas, num_rela, &num_plts, &num_gots); in module_frob_arch_sections()
|
D | elf_kexec.c | 379 Elf64_Rela *relas; in arch_kexec_apply_relocations_add() local 387 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 389 for (i = 0; i < relsec->sh_size / sizeof(*relas); i++) { in arch_kexec_apply_relocations_add() 397 sym += ELF64_R_SYM(relas[i].r_info); in arch_kexec_apply_relocations_add() 406 loc += relas[i].r_offset; in arch_kexec_apply_relocations_add() 419 val += relas[i].r_addend; in arch_kexec_apply_relocations_add() 421 addr = section->sh_addr + relas[i].r_offset; in arch_kexec_apply_relocations_add() 423 r_type = ELF64_R_TYPE(relas[i].r_info); in arch_kexec_apply_relocations_add()
|
/linux-6.12.1/arch/loongarch/kernel/ |
D | module-sections.c | 81 static void count_max_entries(Elf_Rela *relas, int num, in count_max_entries() argument 87 type = ELF_R_TYPE(relas[i].r_info); in count_max_entries() 91 if (!duplicate_rela(relas, i)) in count_max_entries() 95 if (!duplicate_rela(relas, i)) in count_max_entries() 140 Elf_Rela *relas = (void *)ehdr + sechdrs[i].sh_offset; in module_frob_arch_sections() local 150 count_max_entries(relas, num_rela, &num_plts, &num_gots); in module_frob_arch_sections()
|
/linux-6.12.1/arch/s390/kernel/ |
D | machine_kexec_file.c | 316 Elf_Rela *relas; in arch_kexec_apply_relocations_add() local 325 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 327 for (i = 0; i < relsec->sh_size / sizeof(*relas); i++) { in arch_kexec_apply_relocations_add() 334 sym += ELF64_R_SYM(relas[i].r_info); in arch_kexec_apply_relocations_add() 360 loc += relas[i].r_offset; in arch_kexec_apply_relocations_add() 365 val += relas[i].r_addend; in arch_kexec_apply_relocations_add() 367 addr = section->sh_addr + relas[i].r_offset; in arch_kexec_apply_relocations_add() 369 r_type = ELF64_R_TYPE(relas[i].r_info); in arch_kexec_apply_relocations_add()
|
/linux-6.12.1/kernel/livepatch/ |
D | core.c | 199 Elf_Rela *relas; in klp_resolve_symbols() local 217 relas = (Elf_Rela *) relasec->sh_addr; in klp_resolve_symbols() 220 sym = (Elf_Sym *)sechdrs[symndx].sh_addr + ELF_R_SYM(relas[i].r_info); in klp_resolve_symbols()
|
/linux-6.12.1/Documentation/livepatch/ |
D | module-elf-format.rst | 52 relas reference are special livepatch symbols (see section 2 and 3). The
|