/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | module.c | 114 Elf32_Shdr *relsec = sechdrs + relindex; in apply_relocate() local 115 Elf32_Shdr *dstsec = sechdrs + relsec->sh_info; in apply_relocate() 116 Elf32_Rel *rel = (void *)relsec->sh_addr; in apply_relocate() 119 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { in apply_relocate()
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
H A D | module.c | 790 unsigned int relsec, struct module *mod) in apply_relocate_add() 792 unsigned int i, n = sechdrs[relsec].sh_size / sizeof(Elf64_Rela); in apply_relocate_add() 793 Elf64_Rela *rela = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add() 798 relsec, n, sechdrs[relsec].sh_info); in apply_relocate_add() 800 target_sec = sechdrs + sechdrs[relsec].sh_info; in apply_relocate_add() 789 apply_relocate_add(Elf64_Shdr *sechdrs, const char *strtab, unsigned int symindex, unsigned int relsec, struct module *mod) apply_relocate_add() argument
|
/kernel/linux/linux-6.6/arch/ia64/kernel/ |
H A D | module.c | 791 unsigned int relsec, struct module *mod) in apply_relocate_add() 793 unsigned int i, n = sechdrs[relsec].sh_size / sizeof(Elf64_Rela); in apply_relocate_add() 794 Elf64_Rela *rela = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add() 799 relsec, n, sechdrs[relsec].sh_info); in apply_relocate_add() 801 target_sec = sechdrs + sechdrs[relsec].sh_info; in apply_relocate_add() 790 apply_relocate_add(Elf64_Shdr *sechdrs, const char *strtab, unsigned int symindex, unsigned int relsec, struct module *mod) apply_relocate_add() argument
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | module_64.c | 767 unsigned int relsec, in apply_relocate_add() 771 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 776 pr_debug("Applying ADD relocate section %u to %u\n", relsec, in apply_relocate_add() 777 sechdrs[relsec].sh_info); in apply_relocate_add() 790 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 792 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 764 apply_relocate_add(Elf64_Shdr *sechdrs, const char *strtab, unsigned int symindex, unsigned int relsec, struct module *me) apply_relocate_add() argument
|
/kernel/linux/linux-6.6/arch/riscv/include/asm/ |
H A D | kexec.h | 63 const Elf_Shdr *relsec,
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | kexec.h | 224 * @relsec: Section containing RELAs. 231 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add() 243 * @relsec: Section containing RELs. 250 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations() 230 arch_kexec_apply_relocations_add(struct purgatory_info *pi, Elf_Shdr *section, const Elf_Shdr *relsec, const Elf_Shdr *symtab) arch_kexec_apply_relocations_add() argument 249 arch_kexec_apply_relocations(struct purgatory_info *pi, Elf_Shdr *section, const Elf_Shdr *relsec, const Elf_Shdr *symtab) arch_kexec_apply_relocations() argument
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
H A D | kexec.h | 92 const Elf_Shdr *relsec,
|
/kernel/linux/linux-6.6/arch/s390/include/asm/ |
H A D | kexec.h | 103 const Elf_Shdr *relsec,
|
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | vpe.c | 427 unsigned int relsec, in apply_relocations() 430 Elf32_Rel *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocations() 437 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocations() 441 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocations() 424 apply_relocations(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex, unsigned int relsec, struct module *me) apply_relocations() argument
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | machine_kexec_file.c | 301 const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add() 315 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 317 for (i = 0; i < relsec->sh_size / sizeof(*relas); i++) { in arch_kexec_apply_relocations_add() 299 arch_kexec_apply_relocations_add(struct purgatory_info *pi, Elf_Shdr *section, const Elf_Shdr *relsec, const Elf_Shdr *symtab) arch_kexec_apply_relocations_add() argument
|
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | elf_kexec.c | 367 const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add() 380 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 382 for (i = 0; i < relsec->sh_size / sizeof(*relas); i++) { in arch_kexec_apply_relocations_add() 430 * in purgatory relsec. Handle it like R_RISCV_CALL in arch_kexec_apply_relocations_add() 431 * sym, instead of searching the whole relsec. in arch_kexec_apply_relocations_add() 365 arch_kexec_apply_relocations_add(struct purgatory_info *pi, Elf_Shdr *section, const Elf_Shdr *relsec, const Elf_Shdr *symtab) arch_kexec_apply_relocations_add() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | kexec.h | 239 * @relsec: Section containing RELAs. 246 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add() 258 * @relsec: Section containing RELs. 265 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations() 245 arch_kexec_apply_relocations_add(struct purgatory_info *pi, Elf_Shdr *section, const Elf_Shdr *relsec, const Elf_Shdr *symtab) arch_kexec_apply_relocations_add() argument 264 arch_kexec_apply_relocations(struct purgatory_info *pi, Elf_Shdr *section, const Elf_Shdr *relsec, const Elf_Shdr *symtab) arch_kexec_apply_relocations() argument
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | vpe.c | 428 unsigned int relsec, in apply_relocations() 431 Elf32_Rel *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocations() 438 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocations() 442 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocations() 425 apply_relocations(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex, unsigned int relsec, struct module *me) apply_relocations() argument
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | kexec.h | 198 const Elf_Shdr *relsec,
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | kexec.h | 199 const Elf_Shdr *relsec,
|
/kernel/linux/linux-6.6/kernel/livepatch/ |
H A D | core.c | 266 unsigned int relsec, in clear_relocate_add() 263 clear_relocate_add(Elf_Shdr *sechdrs, const char *strtab, unsigned int symindex, unsigned int relsec, struct module *me) clear_relocate_add() argument
|