• Home
  • Raw
  • Download

Lines Matching refs:sechdrs

299 			      CONST Elf_Shdr *sechdrs,  in module_frob_arch_sections()  argument
312 const Elf_Rela *rels = (void *)sechdrs[i].sh_addr; in module_frob_arch_sections()
313 unsigned long nrels = sechdrs[i].sh_size / sizeof(*rels); in module_frob_arch_sections()
316 if (strncmp(secstrings + sechdrs[i].sh_name, in module_frob_arch_sections()
320 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
340 s = sechdrs[i].sh_info; in module_frob_arch_sections()
518 int apply_relocate_add(Elf_Shdr *sechdrs, 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()
538 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
540 loc = (void *)sechdrs[targetsec].sh_addr in apply_relocate_add()
543 loc0 = sechdrs[targetsec].sh_addr; in apply_relocate_add()
545 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
663 int apply_relocate_add(Elf_Shdr *sechdrs, 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()
682 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
684 loc = (void *)sechdrs[targetsec].sh_addr in apply_relocate_add()
687 loc0 = sechdrs[targetsec].sh_addr; in apply_relocate_add()
689 sym = (Elf64_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
832 const Elf_Shdr *sechdrs) in register_unwind_table() argument
840 table = (unsigned char *)sechdrs[me->arch.unwind_section].sh_addr; in register_unwind_table()
841 end = table + sechdrs[me->arch.unwind_section].sh_size; in register_unwind_table()
857 const Elf_Shdr *sechdrs, in module_finalize() argument
884 register_unwind_table(me, sechdrs); in module_finalize()
889 if(sechdrs[i].sh_type == SHT_SYMTAB in module_finalize()
890 && (sechdrs[i].sh_flags & SHF_ALLOC)) { in module_finalize()
891 int strindex = sechdrs[i].sh_link; in module_finalize()
896 symhdr = (Elf_Shdr *)&sechdrs[i]; in module_finalize()
897 strtab = (char *)sechdrs[strindex].sh_addr; in module_finalize()
940 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
941 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()
957 err = apply_relocate((Elf_Shdr *)sechdrs, in module_finalize()
959 s - sechdrs, me); in module_finalize()
961 err = apply_relocate_add((Elf_Shdr *)sechdrs, in module_finalize()
963 s - sechdrs, me); in module_finalize()