/linux-6.12.1/arch/m68k/kernel/ |
D | module.c | 25 unsigned int relsec, in apply_relocate() argument 29 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate() 33 DEBUGP("Applying relocate section %u to %u\n", relsec, in apply_relocate() 34 sechdrs[relsec].sh_info); in apply_relocate() 35 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate() 37 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate() 65 unsigned int relsec, in apply_relocate_add() argument 69 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 73 DEBUGP("Applying relocate_add section %u to %u\n", relsec, in apply_relocate_add() 74 sechdrs[relsec].sh_info); in apply_relocate_add() [all …]
|
/linux-6.12.1/arch/x86/kernel/ |
D | module.c | 43 unsigned int relsec, in apply_relocate() argument 47 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate() 52 relsec, sechdrs[relsec].sh_info); in apply_relocate() 53 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate() 55 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate() 84 unsigned int relsec, in __write_relocate_add() argument 90 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in __write_relocate_add() 98 relsec, sechdrs[relsec].sh_info); in __write_relocate_add() 99 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in __write_relocate_add() 103 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __write_relocate_add() [all …]
|
D | machine_kexec_64.c | 419 Elf_Shdr *section, const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add() argument 435 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 438 shstrtab + relsec->sh_name, relsec->sh_info); in arch_kexec_apply_relocations_add() 440 for (i = 0; i < relsec->sh_size / sizeof(*rel); i++) { in arch_kexec_apply_relocations_add()
|
/linux-6.12.1/arch/xtensa/kernel/ |
D | module.c | 50 unsigned int relsec, in apply_relocate_add() argument 54 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 59 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 60 sechdrs[relsec].sh_info); in apply_relocate_add() 62 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 63 location = (char *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 90 mod->name, relsec, i, in apply_relocate_add() 114 mod->name, relsec, i, in apply_relocate_add()
|
/linux-6.12.1/arch/microblaze/kernel/ |
D | module.c | 19 unsigned int symindex, unsigned int relsec, struct module *module) in apply_relocate_add() argument 23 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 29 relsec, sechdrs[relsec].sh_info); in apply_relocate_add() 31 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 33 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr + in apply_relocate_add()
|
/linux-6.12.1/arch/openrisc/kernel/ |
D | module.c | 19 unsigned int relsec, in apply_relocate_add() argument 23 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 28 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 29 sechdrs[relsec].sh_info); in apply_relocate_add() 30 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 32 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/linux-6.12.1/arch/sh/kernel/ |
D | module.c | 27 unsigned int relsec, in apply_relocate_add() argument 31 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 37 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 38 sechdrs[relsec].sh_info); in apply_relocate_add() 39 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 41 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/linux-6.12.1/arch/nios2/kernel/ |
D | module.c | 24 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 28 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 30 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 31 sechdrs[relsec].sh_info); in apply_relocate_add() 33 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 37 = ((void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/linux-6.12.1/include/linux/ |
D | moduleloader.h | 51 unsigned int relsec, 57 unsigned int relsec, in apply_relocate() argument 74 unsigned int relsec, 90 unsigned int relsec, 97 unsigned int relsec, in apply_relocate_add() argument
|
/linux-6.12.1/arch/mips/kernel/ |
D | module.c | 304 unsigned int symindex, unsigned int relsec, in __apply_relocate() argument 318 pr_debug("Applying relocate section %u to %u\n", relsec, in __apply_relocate() 319 sechdrs[relsec].sh_info); in __apply_relocate() 321 r.rel = (void *)sechdrs[relsec].sh_addr; in __apply_relocate() 324 for (i = 0; i < sechdrs[relsec].sh_size / reloc_sz; i++) { in __apply_relocate() 326 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate() 377 unsigned int symindex, unsigned int relsec, in apply_relocate() argument 380 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false); in apply_relocate() 385 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 388 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true); in apply_relocate_add()
|
/linux-6.12.1/arch/hexagon/kernel/ |
D | module.c | 68 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 75 unsigned int nrelocs = sechdrs[relsec].sh_size / sizeof(Elf32_Rela); in apply_relocate_add() 76 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 77 Elf32_Word sym_info = sechdrs[relsec].sh_info; in apply_relocate_add() 82 relsec, sym_info, loc_base); in apply_relocate_add()
|
/linux-6.12.1/arch/csky/kernel/ |
D | module.c | 50 unsigned int symindex, unsigned int relsec, struct module *me) in apply_relocate_add() argument 53 Elf32_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add() 58 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 60 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/linux-6.12.1/arch/arc/kernel/ |
D | module.c | 48 unsigned int relsec, /* sec index for relo sec */ in apply_relocate_add() argument 52 Elf32_Rela *rel_entry = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 61 tgtsec = sechdrs[relsec].sh_info; in apply_relocate_add() 64 n = sechdrs[relsec].sh_size / sizeof(*rel_entry); in apply_relocate_add()
|
/linux-6.12.1/arch/alpha/kernel/ |
D | module.c | 134 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 137 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 138 unsigned long i, n = sechdrs[relsec].sh_size / sizeof(*rela); in apply_relocate_add() 143 DEBUGP("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 144 sechdrs[relsec].sh_info); in apply_relocate_add() 146 base = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr; in apply_relocate_add()
|
/linux-6.12.1/arch/powerpc/kernel/ |
D | module_32.c | 199 unsigned int relsec, in apply_relocate_add() argument 203 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 208 pr_debug("Applying ADD relocate section %u to %u\n", relsec, in apply_relocate_add() 209 sechdrs[relsec].sh_info); in apply_relocate_add() 210 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 212 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
D | module_64.c | 766 unsigned int relsec, in apply_relocate_add() argument 770 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 775 pr_debug("Applying ADD relocate section %u to %u\n", relsec, in apply_relocate_add() 776 sechdrs[relsec].sh_info); in apply_relocate_add() 789 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 791 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/linux-6.12.1/arch/sparc/kernel/ |
D | module.c | 56 unsigned int relsec, in apply_relocate_add() argument 60 Elf_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 65 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 69 location = (u8 *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/linux-6.12.1/kernel/ |
D | kexec_file.c | 976 const Elf_Shdr *relsec; in kexec_apply_relocations() local 980 relsec = sechdrs + i; in kexec_apply_relocations() 982 if (relsec->sh_type != SHT_RELA && in kexec_apply_relocations() 983 relsec->sh_type != SHT_REL) in kexec_apply_relocations() 992 if (relsec->sh_info >= pi->ehdr->e_shnum || in kexec_apply_relocations() 993 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 996 section = pi->sechdrs + relsec->sh_info; in kexec_apply_relocations() 997 symtab = sechdrs + relsec->sh_link; in kexec_apply_relocations() 1014 if (relsec->sh_type == SHT_RELA) in kexec_apply_relocations() 1016 relsec, symtab); in kexec_apply_relocations() [all …]
|
/linux-6.12.1/arch/s390/kernel/ |
D | module.c | 428 unsigned int symindex, unsigned int relsec, in __apply_relocate_add() argument 439 relsec, sechdrs[relsec].sh_info); in __apply_relocate_add() 440 base = sechdrs[sechdrs[relsec].sh_info].sh_addr; in __apply_relocate_add() 442 rela = (Elf_Rela *) sechdrs[relsec].sh_addr; in __apply_relocate_add() 443 n = sechdrs[relsec].sh_size / sizeof(Elf_Rela); in __apply_relocate_add() 454 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 463 return __apply_relocate_add(sechdrs, strtab, symindex, relsec, me, in apply_relocate_add()
|
/linux-6.12.1/arch/parisc/kernel/ |
D | module.c | 492 unsigned int relsec, in apply_relocate_add() argument 496 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 503 unsigned int targetsec = sechdrs[relsec].sh_info; in apply_relocate_add() 507 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 509 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 637 unsigned int relsec, in apply_relocate_add() argument 641 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 649 unsigned int targetsec = sechdrs[relsec].sh_info; in apply_relocate_add() 651 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 653 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
|
/linux-6.12.1/arch/riscv/kernel/ |
D | module.c | 777 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 780 Elf_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add() 788 unsigned int num_relocations = sechdrs[relsec].sh_size / sizeof(*rel); in apply_relocate_add() 799 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 800 sechdrs[relsec].sh_info); in apply_relocate_add() 804 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 839 sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 872 if (j > sechdrs[relsec].sh_size / sizeof(*rel)) in apply_relocate_add()
|
/linux-6.12.1/arch/loongarch/kernel/ |
D | module.c | 423 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 434 Elf_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add() 436 pr_debug("%s: Applying relocate section %u to %u\n", __func__, relsec, in apply_relocate_add() 437 sechdrs[relsec].sh_info); in apply_relocate_add() 440 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 442 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr + rel[i].r_offset; in apply_relocate_add()
|
/linux-6.12.1/arch/arm64/kernel/ |
D | module.c | 221 unsigned int relsec, in apply_relocate_add() argument 230 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 232 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 234 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/linux-6.12.1/arch/arm/kernel/ |
D | module.c | 80 Elf32_Shdr *relsec = sechdrs + relindex; in apply_relocate() local 81 Elf32_Shdr *dstsec = sechdrs + relsec->sh_info; in apply_relocate() 82 Elf32_Rel *rel = (void *)relsec->sh_addr; in apply_relocate() 85 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { in apply_relocate()
|
/linux-6.12.1/arch/riscv/include/asm/ |
D | kexec.h | 63 const Elf_Shdr *relsec,
|