Searched defs:sechdrs (Results 26 - 34 of 34) sorted by relevance

12

/arch/mips/kernel/
H A Dmodule.c195 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, argument
199 Elf_Mips_Rel *rel = (void *) sechdrs[relsec].sh_addr;
207 sechdrs[relsec].sh_info);
210 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
212 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
215 sym = (Elf_Sym *)sechdrs[symindex].sh_addr
271 const Elf_Shdr *sechdrs,
275 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
281 for (s = sechdrs;
270 module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *me) argument
[all...]
H A Dvpe.c183 Elf_Shdr *sechdrs, const char *secstrings)
197 sechdrs[i].sh_entsize = ~0UL;
201 Elf_Shdr *s = &sechdrs[i];
425 static int apply_relocations(Elf32_Shdr *sechdrs, argument
431 Elf32_Rel *rel = (void *) sechdrs[relsec].sh_addr;
438 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
442 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
445 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
477 static void simplify_symbols(Elf_Shdr *sechdrs, argument
182 layout_sections(struct module *mod, const Elf_Ehdr *hdr, Elf_Shdr *sechdrs, const char *secstrings) argument
536 dump_elfsymbols(Elf_Shdr *sechdrs, unsigned int symindex, const char *strtab, struct module *mod) argument
550 find_vpe_symbols(struct vpe *v, Elf_Shdr *sechdrs, unsigned int symindex, const char *strtab, struct module *mod) argument
579 Elf_Shdr *sechdrs; local
[all...]
/arch/s390/kernel/
H A Dmodule.c117 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, argument
129 switch (sechdrs[i].sh_type) {
131 symtab = sechdrs + i;
146 strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset;
162 if (sechdrs[i].sh_type != SHT_RELA)
164 nrela = sechdrs[i].sh_size / sizeof(Elf_Rela);
165 rela = (void *) hdr + sechdrs[i].sh_offset;
414 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, argument
425 relsec, sechdrs[relsec].sh_info);
426 base = sechdrs[sechdr
439 module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *me) argument
[all...]
/arch/x86/kernel/
H A Dmachine_kexec_64.c400 * sechdrs: Pointer to section headers.
406 Elf64_Shdr *sechdrs, unsigned int relsec)
420 rel = (void *)sechdrs[relsec].sh_offset;
423 section = &sechdrs[sechdrs[relsec].sh_info];
426 sechdrs[relsec].sh_info);
429 symtabsec = &sechdrs[sechdrs[relsec].sh_link];
439 strtab = (char *)sechdrs[symtabsec->sh_link].sh_offset;
442 shstrtab = (char *)sechdrs[ehd
405 arch_kexec_apply_relocations_add(const Elf64_Ehdr *ehdr, Elf64_Shdr *sechdrs, unsigned int relsec) argument
[all...]
/arch/powerpc/kernel/
H A Dmodule_64.c271 const Elf64_Shdr *sechdrs)
279 if (sechdrs[i].sh_type == SHT_RELA) {
282 (void *)sechdrs[i].sh_addr,
283 sechdrs[i].sh_size / sizeof(Elf64_Rela));
290 sort((void *)sechdrs[i].sh_addr,
291 sechdrs[i].sh_size / sizeof(Elf64_Rela),
294 relocs += count_relocs((void *)sechdrs[i].sh_addr,
295 sechdrs[i].sh_size
343 static Elf64_Sym *find_dot_toc(Elf64_Shdr *sechdrs, argument
350 syms = (Elf64_Sym *)sechdrs[syminde
270 get_stubs_size(const Elf64_Ehdr *hdr, const Elf64_Shdr *sechdrs) argument
361 module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs, char *secstrings, struct module *me) argument
410 my_r2(Elf64_Shdr *sechdrs, struct module *me) argument
423 create_stub(Elf64_Shdr *sechdrs, struct ppc64_stub_entry *entry, unsigned long addr, struct module *me) argument
449 stub_for_addr(Elf64_Shdr *sechdrs, unsigned long addr, struct module *me) argument
487 apply_relocate_add(Elf64_Shdr *sechdrs, const char *strtab, unsigned int symindex, unsigned int relsec, struct module *me) argument
[all...]
H A Dvdso.c299 Elf32_Shdr *sechdrs; local
304 sechdrs = (void *)ehdr + ehdr->e_shoff;
305 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset;
309 if (strcmp(secnames+sechdrs[i].sh_name, secname) == 0) {
311 *size = sechdrs[i].sh_size;
312 return (void *)ehdr + sechdrs[i].sh_offset;
390 Elf64_Shdr *sechdrs; local
395 sechdrs = (void *)ehdr + ehdr->e_shoff;
396 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset;
400 if (strcmp(secnames+sechdrs[
[all...]
/arch/parisc/kernel/
H A Dmodule.c323 CONST Elf_Shdr *sechdrs,
336 const Elf_Rela *rels = (void *)sechdrs[i].sh_addr;
337 unsigned long nrels = sechdrs[i].sh_size / sizeof(*rels);
340 if (strncmp(secstrings + sechdrs[i].sh_name,
344 if (sechdrs[i].sh_type != SHT_RELA)
364 s = sechdrs[i].sh_info;
542 int apply_relocate_add(Elf_Shdr *sechdrs, argument
549 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr;
556 unsigned int targetsec = sechdrs[relsec].sh_info;
562 for (i = 0; i < sechdrs[relse
322 module_frob_arch_sections(CONST Elf_Ehdr *hdr, CONST Elf_Shdr *sechdrs, CONST char *secstrings, struct module *me) argument
679 apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, unsigned int symindex, unsigned int relsec, struct module *me) argument
835 register_unwind_table(struct module *me, const Elf_Shdr *sechdrs) argument
860 module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *me) argument
[all...]
/arch/sh/kernel/
H A Ddwarf.c1089 int module_dwarf_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, argument
1094 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
1100 if ((sechdrs[i].sh_flags & SHF_ALLOC)
1101 && !strcmp(secstrings+sechdrs[i].sh_name, ".eh_frame")) {
1102 start = sechdrs[i].sh_addr;
1103 end = start + sechdrs[i].sh_size;
/arch/ia64/kernel/
H A Dmodule.c423 module_frob_arch_sections (Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings, argument
427 Elf64_Shdr *s, *sechdrs_end = sechdrs + ehdr->e_shnum;
433 for (s = sechdrs; s < sechdrs_end; ++s)
459 for (s = sechdrs + 1; s < sechdrs_end; ++s) {
797 apply_relocate_add (Elf64_Shdr *sechdrs, const char *strtab, unsigned int symindex, argument
800 unsigned int i, n = sechdrs[relsec].sh_size / sizeof(Elf64_Rela);
801 Elf64_Rela *rela = (void *) sechdrs[relsec].sh_addr;
806 relsec, n, sechdrs[relsec].sh_info);
808 target_sec = sechdrs + sechdrs[relse
914 module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *mod) argument
[all...]

Completed in 365 milliseconds

12