Home
last modified time | relevance | path

Searched refs:relsec (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v6.1/arch/m68k/kernel/
Dmodule.c25 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-v6.1/arch/xtensa/kernel/
Dmodule.c50 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-v6.1/arch/x86/kernel/
Dmodule.c93 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 …]
Dmachine_kexec_64.c399 Elf_Shdr *section, const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add() argument
415 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add()
418 shstrtab + relsec->sh_name, relsec->sh_info); in arch_kexec_apply_relocations_add()
420 for (i = 0; i < relsec->sh_size / sizeof(*rel); i++) { in arch_kexec_apply_relocations_add()
/Linux-v6.1/arch/openrisc/kernel/
Dmodule.c19 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-v6.1/arch/microblaze/kernel/
Dmodule.c19 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-v6.1/arch/sh/kernel/
Dmodule.c27 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-v6.1/arch/nios2/kernel/
Dmodule.c44 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()
/Linux-v6.1/include/linux/
Dmoduleloader.h50 unsigned int relsec,
56 unsigned int relsec, in apply_relocate() argument
73 unsigned int relsec,
79 unsigned int relsec, in apply_relocate_add() argument
/Linux-v6.1/arch/hexagon/kernel/
Dmodule.c68 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-v6.1/arch/mips/kernel/
Dmodule.c315 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()
/Linux-v6.1/arch/csky/kernel/
Dmodule.c50 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-v6.1/arch/riscv/kernel/
Dmodule.c325 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument
328 Elf_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add()
336 pr_debug("Applying relocate section %u to %u\n", relsec, in apply_relocate_add()
337 sechdrs[relsec].sh_info); in apply_relocate_add()
339 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
341 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
373 for (j = 0; j < sechdrs[relsec].sh_size / sizeof(*rel); j++) { in apply_relocate_add()
375 sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
406 if (j == sechdrs[relsec].sh_size / sizeof(*rel)) { in apply_relocate_add()
/Linux-v6.1/arch/arc/kernel/
Dmodule.c48 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-v6.1/arch/alpha/kernel/
Dmodule.c134 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-v6.1/arch/powerpc/kernel/
Dmodule_32.c200 unsigned int relsec, in apply_relocate_add() argument
204 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
209 pr_debug("Applying ADD relocate section %u to %u\n", relsec, in apply_relocate_add()
210 sechdrs[relsec].sh_info); in apply_relocate_add()
211 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
213 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
Dmodule_64.c523 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()
/Linux-v6.1/arch/sparc/kernel/
Dmodule.c86 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()
/Linux-v6.1/arch/loongarch/kernel/
Dmodule.c399 unsigned int symindex, unsigned int relsec, in apply_relocate_add() argument
410 Elf_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add()
412 pr_debug("%s: Applying relocate section %u to %u\n", __func__, relsec, in apply_relocate_add()
413 sechdrs[relsec].sh_info); in apply_relocate_add()
416 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
418 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr + rel[i].r_offset; in apply_relocate_add()
/Linux-v6.1/arch/s390/kernel/
Dmodule.c440 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()
Dmachine_kexec_file.c300 const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add() argument
314 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add()
316 for (i = 0; i < relsec->sh_size / sizeof(*relas); i++) { in arch_kexec_apply_relocations_add()
/Linux-v6.1/arch/parisc/kernel/
Dmodule.c521 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()
/Linux-v6.1/kernel/
Dkexec_file.c930 const Elf_Shdr *relsec; in kexec_apply_relocations() local
934 relsec = sechdrs + i; in kexec_apply_relocations()
936 if (relsec->sh_type != SHT_RELA && in kexec_apply_relocations()
937 relsec->sh_type != SHT_REL) in kexec_apply_relocations()
946 if (relsec->sh_info >= pi->ehdr->e_shnum || in kexec_apply_relocations()
947 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations()
950 section = pi->sechdrs + relsec->sh_info; in kexec_apply_relocations()
951 symtab = sechdrs + relsec->sh_link; in kexec_apply_relocations()
968 if (relsec->sh_type == SHT_RELA) in kexec_apply_relocations()
970 relsec, symtab); in kexec_apply_relocations()
[all …]
/Linux-v6.1/arch/arm64/kernel/
Dmodule.c264 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()
/Linux-v6.1/arch/arm/kernel/
Dmodule.c114 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()

12