/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 …]
|
/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()
|
/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()
|
/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()
|
/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()
|
/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()
|
/arch/x86/kernel/ |
D | module.c | 93 unsigned int relsec, in apply_relocate() argument 97 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate() 102 relsec, sechdrs[relsec].sh_info); in apply_relocate() 103 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate() 105 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate() 134 unsigned int relsec, in __apply_relocate_add() argument 139 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in __apply_relocate_add() 145 relsec, sechdrs[relsec].sh_info); in __apply_relocate_add() 146 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in __apply_relocate_add() 148 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate_add() [all …]
|
D | machine_kexec_64.c | 396 Elf_Shdr *section, const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add() argument 412 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 415 shstrtab + relsec->sh_name, relsec->sh_info); in arch_kexec_apply_relocations_add() 417 for (i = 0; i < relsec->sh_size / sizeof(*rel); i++) { in arch_kexec_apply_relocations_add()
|
/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()
|
/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()
|
/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()
|
/arch/mips/kernel/ |
D | module.c | 314 unsigned int symindex, unsigned int relsec, in __apply_relocate() argument 328 pr_debug("Applying relocate section %u to %u\n", relsec, in __apply_relocate() 329 sechdrs[relsec].sh_info); in __apply_relocate() 331 r.rel = (void *)sechdrs[relsec].sh_addr; in __apply_relocate() 334 for (i = 0; i < sechdrs[relsec].sh_size / reloc_sz; i++) { in __apply_relocate() 336 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate() 387 unsigned int symindex, unsigned int relsec, in apply_relocate() argument 390 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false); in apply_relocate() 395 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 398 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true); in apply_relocate_add()
|
/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()
|
/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()
|
/arch/powerpc/kernel/ |
D | module_32.c | 189 unsigned int relsec, in apply_relocate_add() argument 193 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 198 pr_debug("Applying ADD relocate section %u to %u\n", relsec, in apply_relocate_add() 199 sechdrs[relsec].sh_info); in apply_relocate_add() 200 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 202 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
D | module_64.c | 529 unsigned int relsec, in apply_relocate_add() argument 533 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 538 pr_debug("Applying ADD relocate section %u to %u\n", relsec, in apply_relocate_add() 539 sechdrs[relsec].sh_info); in apply_relocate_add() 551 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 553 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/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()
|
/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()
|
/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()
|
/arch/s390/kernel/ |
D | module.c | 440 unsigned int symindex, unsigned int relsec, in __apply_relocate_add() argument 451 relsec, sechdrs[relsec].sh_info); in __apply_relocate_add() 452 base = sechdrs[sechdrs[relsec].sh_info].sh_addr; in __apply_relocate_add() 454 rela = (Elf_Rela *) sechdrs[relsec].sh_addr; in __apply_relocate_add() 455 n = sechdrs[relsec].sh_size / sizeof(Elf_Rela); in __apply_relocate_add() 466 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument 475 return __apply_relocate_add(sechdrs, strtab, symindex, relsec, me, in apply_relocate_add()
|
D | machine_kexec_file.c | 284 const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add() argument 291 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 293 for (i = 0; i < relsec->sh_size / sizeof(*relas); i++) { in arch_kexec_apply_relocations_add()
|
/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()
|
/arch/s390/include/asm/ |
D | kexec.h | 92 const Elf_Shdr *relsec,
|
/arch/arm64/kernel/ |
D | module.c | 264 unsigned int relsec, in apply_relocate_add() argument 273 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() 275 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 277 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
|
/arch/arm/kernel/ |
D | module.c | 76 Elf32_Shdr *relsec = sechdrs + relindex; in apply_relocate() local 77 Elf32_Shdr *dstsec = sechdrs + relsec->sh_info; in apply_relocate() 78 Elf32_Rel *rel = (void *)relsec->sh_addr; in apply_relocate() 81 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { in apply_relocate()
|