/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | module.c | 92 unsigned int relsec, in apply_relocate() argument 96 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate() 101 relsec, sechdrs[relsec].sh_info); in apply_relocate() 102 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate() 104 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate() 133 unsigned int relsec, in __apply_relocate_add() argument 138 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in __apply_relocate_add() 144 relsec, sechdrs[relsec].sh_info); in __apply_relocate_add() 145 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in __apply_relocate_add() 147 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate_add() [all …]
|
D | machine_kexec_64.c | 428 Elf_Shdr *section, const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add() argument 444 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 447 shstrtab + relsec->sh_name, relsec->sh_info); in arch_kexec_apply_relocations_add() 449 for (i = 0; i < relsec->sh_size / sizeof(*rel); i++) { in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/h8300/kernel/ |
D | module.c | 12 unsigned int relsec, in apply_relocate_add() argument 16 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 18 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 19 sechdrs[relsec].sh_info); in apply_relocate_add() 20 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 23 (uint32_t *)(sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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() 32 relsec, sechdrs[relsec].sh_info); in apply_relocate_add() 34 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 36 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr + in apply_relocate_add()
|
/kernel/linux/linux-5.10/arch/nios2/kernel/ |
D | module.c | 44 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 48 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 50 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 51 sechdrs[relsec].sh_info); in apply_relocate_add() 53 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 57 = ((void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/kernel/linux/linux-5.10/arch/c6x/kernel/ |
D | module.c | 44 unsigned int relsec, in apply_relocate_add() argument 47 Elf32_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add() 55 relsec, sechdrs[relsec].sh_info, offset); in apply_relocate_add() 57 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 59 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/kernel/linux/linux-5.10/include/linux/ |
D | moduleloader.h | 55 unsigned int relsec, 61 unsigned int relsec, in apply_relocate() argument 78 unsigned int relsec, 84 unsigned int relsec, in apply_relocate_add() argument
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | module.c | 307 unsigned int symindex, unsigned int relsec, in __apply_relocate() argument 322 pr_debug("Applying relocate section %u to %u\n", relsec, in __apply_relocate() 323 sechdrs[relsec].sh_info); in __apply_relocate() 325 r.rel = (void *)sechdrs[relsec].sh_addr; in __apply_relocate() 328 for (i = 0; i < sechdrs[relsec].sh_size / reloc_sz; i++) { in __apply_relocate() 330 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate() 392 unsigned int symindex, unsigned int relsec, in apply_relocate() argument 395 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false); in apply_relocate() 400 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 403 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true); in apply_relocate_add()
|
/kernel/linux/linux-5.10/arch/riscv/kernel/ |
D | module.c | 324 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 327 Elf_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add() 335 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 336 sechdrs[relsec].sh_info); in apply_relocate_add() 338 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 340 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 372 for (j = 0; j < sechdrs[relsec].sh_size / sizeof(*rel); j++) { in apply_relocate_add() 374 sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 405 if (j == sechdrs[relsec].sh_size / sizeof(*rel)) { in apply_relocate_add()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | module_32.c | 196 unsigned int relsec, in apply_relocate_add() argument 200 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 205 pr_debug("Applying ADD relocate section %u to %u\n", relsec, in apply_relocate_add() 206 sechdrs[relsec].sh_info); in apply_relocate_add() 207 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 209 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
D | module_64.c | 523 unsigned int relsec, in apply_relocate_add() argument 527 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 532 pr_debug("Applying ADD relocate section %u to %u\n", relsec, in apply_relocate_add() 533 sechdrs[relsec].sh_info); in apply_relocate_add() 545 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 547 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
D | module.c | 86 unsigned int relsec, in apply_relocate_add() argument 90 Elf_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 95 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 99 location = (u8 *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/kernel/linux/linux-5.10/arch/nds32/kernel/ |
D | module.c | 118 Elf32_Shdr *relsec = sechdrs + relindex; in apply_relocate_add() local 119 Elf32_Shdr *dstsec = sechdrs + relsec->sh_info; in apply_relocate_add() 120 Elf32_Rela *rel = (void *)relsec->sh_addr; in apply_relocate_add() 123 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rela); i++, rel++) { in apply_relocate_add()
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | module.c | 429 unsigned int symindex, unsigned int relsec, in __apply_relocate_add() argument 440 relsec, sechdrs[relsec].sh_info); in __apply_relocate_add() 441 base = sechdrs[sechdrs[relsec].sh_info].sh_addr; in __apply_relocate_add() 443 rela = (Elf_Rela *) sechdrs[relsec].sh_addr; in __apply_relocate_add() 444 n = sechdrs[relsec].sh_size / sizeof(Elf_Rela); in __apply_relocate_add() 455 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 464 return __apply_relocate_add(sechdrs, strtab, symindex, relsec, me, in apply_relocate_add()
|
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
D | module.c | 521 unsigned int relsec, in apply_relocate_add() argument 525 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 532 unsigned int targetsec = sechdrs[relsec].sh_info; in apply_relocate_add() 536 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 538 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 666 unsigned int relsec, in apply_relocate_add() argument 670 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 678 unsigned int targetsec = sechdrs[relsec].sh_info; in apply_relocate_add() 680 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 682 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
|
/kernel/linux/linux-5.10/kernel/ |
D | kexec_file.c | 954 const Elf_Shdr *relsec; in kexec_apply_relocations() local 958 relsec = sechdrs + i; in kexec_apply_relocations() 960 if (relsec->sh_type != SHT_RELA && in kexec_apply_relocations() 961 relsec->sh_type != SHT_REL) in kexec_apply_relocations() 970 if (relsec->sh_info >= pi->ehdr->e_shnum || in kexec_apply_relocations() 971 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 974 section = pi->sechdrs + relsec->sh_info; in kexec_apply_relocations() 975 symtab = sechdrs + relsec->sh_link; in kexec_apply_relocations() 992 if (relsec->sh_type == SHT_RELA) in kexec_apply_relocations() 994 relsec, symtab); in kexec_apply_relocations() [all …]
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | module.c | 259 unsigned int relsec, in apply_relocate_add() argument 268 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 270 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 272 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|