Lines Matching refs:sechdr

329 	Elf_Shdr *sechdr = &info->sechdrs[secindex];  in sym_get_data_by_offset()  local
332 offset -= sechdr->sh_addr; in sym_get_data_by_offset()
334 return (void *)info->hdr + sechdr->sh_offset + offset; in sym_get_data_by_offset()
343 static const char *sech_name(const struct elf_info *info, Elf_Shdr *sechdr) in sech_name() argument
346 sechdr->sh_name); in sech_name()
910 Elf_Shdr *sechdr) in check_section() argument
912 const char *sec = sech_name(elf, sechdr); in check_section()
914 if (sechdr->sh_type == SHT_PROGBITS && in check_section()
915 !(sechdr->sh_flags & SHF_ALLOC) && in check_section()
1753 Elf_Shdr *sechdr, Elf_Rela *r) in reloc_location() argument
1755 return sym_get_data_by_offset(elf, sechdr->sh_info, r->r_offset); in reloc_location()
1758 static int addend_386_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_386_rel() argument
1761 unsigned int *location = reloc_location(elf, sechdr, r); in addend_386_rel()
1794 static int addend_arm_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_arm_rel() argument
1812 sechdr->sh_offset + in addend_arm_rel()
1813 (r->r_offset - sechdr->sh_addr)); in addend_arm_rel()
1821 static int addend_mips_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_mips_rel() argument
1824 unsigned int *location = reloc_location(elf, sechdr, r); in addend_mips_rel()
1845 Elf_Shdr *sechdr) in section_rela() argument
1853 Elf_Rela *start = (void *)elf->hdr + sechdr->sh_offset; in section_rela()
1854 Elf_Rela *stop = (void *)start + sechdr->sh_size; in section_rela()
1856 fromsec = sech_name(elf, sechdr); in section_rela()
1891 Elf_Shdr *sechdr) in section_rel() argument
1899 Elf_Rel *start = (void *)elf->hdr + sechdr->sh_offset; in section_rel()
1900 Elf_Rel *stop = (void *)start + sechdr->sh_size; in section_rel()
1902 fromsec = sech_name(elf, sechdr); in section_rel()
1928 if (addend_386_rel(elf, sechdr, &r)) in section_rel()
1932 if (addend_arm_rel(elf, sechdr, &r)) in section_rel()
1936 if (addend_mips_rel(elf, sechdr, &r)) in section_rel()