Home
last modified time | relevance | path

Searched refs:relas (Results 1 – 5 of 5) sorted by relevance

/linux/arch/loongarch/kernel/
H A Dmodule-sections.c79 static void count_max_entries(Elf_Rela *relas, int num, in count_max_entries() argument
84 sort(relas, num, sizeof(Elf_Rela), compare_rela, NULL); in count_max_entries()
87 if (i && !compare_rela(&relas[i-1], &relas[i])) in count_max_entries()
90 switch (ELF_R_TYPE(relas[i].r_info)) { in count_max_entries()
141 Elf_Rela *relas = (void *)ehdr + sechdrs[i].sh_offset; in module_frob_arch_sections() local
151 count_max_entries(relas, num_rela, &num_plts, &num_gots); in module_frob_arch_sections()
/linux/arch/riscv/kernel/
H A Dmachine_kexec_file.c152 Elf64_Rela *relas; in arch_kexec_apply_relocations_add() local
160 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add()
162 for (i = 0; i < relsec->sh_size / sizeof(*relas); i++) { in arch_kexec_apply_relocations_add()
170 sym += ELF64_R_SYM(relas[i].r_info); in arch_kexec_apply_relocations_add()
179 loc += relas[i].r_offset; in arch_kexec_apply_relocations_add()
192 val += relas[i].r_addend; in arch_kexec_apply_relocations_add()
194 addr = section->sh_addr + relas[i].r_offset; in arch_kexec_apply_relocations_add()
196 r_type = ELF64_R_TYPE(relas[i].r_info); in arch_kexec_apply_relocations_add()
H A Dmodule-sections.c82 static void count_max_entries(const Elf_Rela *relas, size_t num, in count_max_entries() argument
86 if (duplicate_rela(relas, i)) in count_max_entries()
89 switch (ELF_R_TYPE(relas[i].r_info)) { in count_max_entries()
154 Elf_Rela *relas = (void *)ehdr + sechdrs[i].sh_offset; in module_frob_arch_sections() local
181 if (rela_needs_plt_got_entry(&relas[j])) in module_frob_arch_sections()
182 scratch[num_scratch_relas++] = relas[j]; in module_frob_arch_sections()
/linux/kernel/livepatch/
H A Dcore.c203 Elf_Rela *relas; in klp_resolve_symbols() local
221 relas = (Elf_Rela *) relasec->sh_addr; in klp_resolve_symbols()
224 sym = (Elf_Sym *)sechdrs[symndx].sh_addr + ELF_R_SYM(relas[i].r_info); in klp_resolve_symbols()
/linux/Documentation/livepatch/
H A Dmodule-elf-format.rst52 relas reference are special livepatch symbols (see section 2 and 3). The