Lines Matching refs:sechdr

333 	Elf_Shdr *sechdr = &info->sechdrs[secindex];  in sym_get_data_by_offset()  local
336 offset -= sechdr->sh_addr; in sym_get_data_by_offset()
338 return (void *)info->hdr + sechdr->sh_offset + offset; in sym_get_data_by_offset()
347 static const char *sech_name(const struct elf_info *info, Elf_Shdr *sechdr) in sech_name() argument
350 sechdr->sh_name); in sech_name()
899 Elf_Shdr *sechdr) in check_section() argument
901 const char *sec = sech_name(elf, sechdr); in check_section()
903 if (sechdr->sh_type == SHT_PROGBITS && in check_section()
904 !(sechdr->sh_flags & SHF_ALLOC) && in check_section()
1742 Elf_Shdr *sechdr, Elf_Rela *r) in reloc_location() argument
1744 return sym_get_data_by_offset(elf, sechdr->sh_info, r->r_offset); in reloc_location()
1747 static int addend_386_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_386_rel() argument
1750 unsigned int *location = reloc_location(elf, sechdr, r); in addend_386_rel()
1783 static int addend_arm_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_arm_rel() argument
1801 sechdr->sh_offset + in addend_arm_rel()
1802 (r->r_offset - sechdr->sh_addr)); in addend_arm_rel()
1810 static int addend_mips_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_mips_rel() argument
1813 unsigned int *location = reloc_location(elf, sechdr, r); in addend_mips_rel()
1834 Elf_Shdr *sechdr) in section_rela() argument
1842 Elf_Rela *start = (void *)elf->hdr + sechdr->sh_offset; in section_rela()
1843 Elf_Rela *stop = (void *)start + sechdr->sh_size; in section_rela()
1845 fromsec = sech_name(elf, sechdr); in section_rela()
1880 Elf_Shdr *sechdr) in section_rel() argument
1888 Elf_Rel *start = (void *)elf->hdr + sechdr->sh_offset; in section_rel()
1889 Elf_Rel *stop = (void *)start + sechdr->sh_size; in section_rel()
1891 fromsec = sech_name(elf, sechdr); in section_rel()
1917 if (addend_386_rel(elf, sechdr, &r)) in section_rel()
1921 if (addend_arm_rel(elf, sechdr, &r)) in section_rel()
1925 if (addend_mips_rel(elf, sechdr, &r)) in section_rel()