/openbmc/linux/arch/m68k/kernel/ |
H A 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 …]
|
/openbmc/linux/arch/x86/kernel/ |
H A D | module.c | 94 unsigned int relsec, in apply_relocate() argument 98 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate() 103 relsec, sechdrs[relsec].sh_info); in apply_relocate() 104 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate() 106 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate() 135 unsigned int relsec, in __write_relocate_add() argument 141 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in __write_relocate_add() 149 relsec, sechdrs[relsec].sh_info); in __write_relocate_add() 150 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in __write_relocate_add() 154 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __write_relocate_add() [all …]
|
H A D | machine_kexec_64.c | 426 Elf_Shdr *section, const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add() argument 442 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 445 shstrtab + relsec->sh_name, relsec->sh_info); in arch_kexec_apply_relocations_add() 447 for (i = 0; i < relsec->sh_size / sizeof(*rel); i++) { in arch_kexec_apply_relocations_add()
|
/openbmc/linux/arch/xtensa/kernel/ |
H A 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()
|
/openbmc/linux/arch/openrisc/kernel/ |
H A 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()
|
/openbmc/linux/arch/microblaze/kernel/ |
H A 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()
|
/openbmc/linux/arch/sh/kernel/ |
H A 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()
|
/openbmc/linux/arch/nios2/kernel/ |
H A 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()
|
/openbmc/linux/include/linux/ |
H A D | moduleloader.h | 58 unsigned int relsec, 64 unsigned int relsec, in apply_relocate() argument 81 unsigned int relsec, 97 unsigned int relsec, 104 unsigned int relsec, in apply_relocate_add() argument
|
/openbmc/linux/arch/mips/kernel/ |
H A D | module.c | 315 unsigned int symindex, unsigned int relsec, in __apply_relocate() argument 329 pr_debug("Applying relocate section %u to %u\n", relsec, in __apply_relocate() 330 sechdrs[relsec].sh_info); in __apply_relocate() 332 r.rel = (void *)sechdrs[relsec].sh_addr; in __apply_relocate() 335 for (i = 0; i < sechdrs[relsec].sh_size / reloc_sz; i++) { in __apply_relocate() 337 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate() 388 unsigned int symindex, unsigned int relsec, in apply_relocate() argument 391 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false); in apply_relocate() 396 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 399 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true); in apply_relocate_add()
|
/openbmc/linux/arch/hexagon/kernel/ |
H A 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()
|
/openbmc/linux/arch/csky/kernel/ |
H A 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()
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | module.c | 341 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 344 Elf_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add() 352 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 353 sechdrs[relsec].sh_info); in apply_relocate_add() 355 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 357 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 389 for (j = 0; j < sechdrs[relsec].sh_size / sizeof(*rel); j++) { in apply_relocate_add() 391 sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 422 if (j == sechdrs[relsec].sh_size / sizeof(*rel)) { in apply_relocate_add()
|
/openbmc/linux/arch/arc/kernel/ |
H A 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()
|
/openbmc/linux/arch/alpha/kernel/ |
H A 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()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A 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()
|
H A D | module_64.c | 767 unsigned int relsec, in apply_relocate_add() argument 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()
|
/openbmc/linux/arch/sparc/kernel/ |
H A 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()
|
/openbmc/linux/kernel/ |
H A D | kexec_file.c | 952 const Elf_Shdr *relsec; in kexec_apply_relocations() local 956 relsec = sechdrs + i; in kexec_apply_relocations() 958 if (relsec->sh_type != SHT_RELA && in kexec_apply_relocations() 959 relsec->sh_type != SHT_REL) in kexec_apply_relocations() 968 if (relsec->sh_info >= pi->ehdr->e_shnum || in kexec_apply_relocations() 969 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 972 section = pi->sechdrs + relsec->sh_info; in kexec_apply_relocations() 973 symtab = sechdrs + relsec->sh_link; in kexec_apply_relocations() 990 if (relsec->sh_type == SHT_RELA) in kexec_apply_relocations() 992 relsec, symtab); in kexec_apply_relocations() [all …]
|
/openbmc/linux/arch/s390/kernel/ |
H A D | module.c | 464 unsigned int symindex, unsigned int relsec, in __apply_relocate_add() argument 475 relsec, sechdrs[relsec].sh_info); in __apply_relocate_add() 476 base = sechdrs[sechdrs[relsec].sh_info].sh_addr; in __apply_relocate_add() 478 rela = (Elf_Rela *) sechdrs[relsec].sh_addr; in __apply_relocate_add() 479 n = sechdrs[relsec].sh_size / sizeof(Elf_Rela); in __apply_relocate_add() 490 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 499 return __apply_relocate_add(sechdrs, strtab, symindex, relsec, me, in apply_relocate_add()
|
/openbmc/linux/arch/parisc/kernel/ |
H A D | module.c | 504 unsigned int relsec, in apply_relocate_add() argument 508 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 515 unsigned int targetsec = sechdrs[relsec].sh_info; in apply_relocate_add() 519 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 521 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 649 unsigned int relsec, in apply_relocate_add() argument 653 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 661 unsigned int targetsec = sechdrs[relsec].sh_info; in apply_relocate_add() 663 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add() 665 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | module.c | 422 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 433 Elf_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add() 435 pr_debug("%s: Applying relocate section %u to %u\n", __func__, relsec, in apply_relocate_add() 436 sechdrs[relsec].sh_info); in apply_relocate_add() 439 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 441 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr + rel[i].r_offset; in apply_relocate_add()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | module.c | 347 unsigned int relsec, in apply_relocate_add() argument 356 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 358 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 360 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/openbmc/linux/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()
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | kexec.h | 63 const Elf_Shdr *relsec,
|