Lines Matching refs:sechdr
303 static const char *sech_name(struct elf_info *elf, Elf_Shdr *sechdr) in sech_name() argument
307 sechdr->sh_name; in sech_name()
922 Elf_Shdr *sechdr) in check_section() argument
924 const char *sec = sech_name(elf, sechdr); in check_section()
926 if (sechdr->sh_type == SHT_PROGBITS && in check_section()
927 !(sechdr->sh_flags & SHF_ALLOC) && in check_section()
1765 Elf_Shdr *sechdr, Elf_Rela *r) in reloc_location() argument
1768 int section = sechdr->sh_info; in reloc_location()
1774 static int addend_386_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_386_rel() argument
1777 unsigned int *location = reloc_location(elf, sechdr, r); in addend_386_rel()
1810 static int addend_arm_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_arm_rel() argument
1828 sechdr->sh_offset + in addend_arm_rel()
1829 (r->r_offset - sechdr->sh_addr)); in addend_arm_rel()
1837 static int addend_mips_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_mips_rel() argument
1840 unsigned int *location = reloc_location(elf, sechdr, r); in addend_mips_rel()
1861 Elf_Shdr *sechdr) in section_rela() argument
1869 Elf_Rela *start = (void *)elf->hdr + sechdr->sh_offset; in section_rela()
1870 Elf_Rela *stop = (void *)start + sechdr->sh_size; in section_rela()
1872 fromsec = sech_name(elf, sechdr); in section_rela()
1907 Elf_Shdr *sechdr) in section_rel() argument
1915 Elf_Rel *start = (void *)elf->hdr + sechdr->sh_offset; in section_rel()
1916 Elf_Rel *stop = (void *)start + sechdr->sh_size; in section_rel()
1918 fromsec = sech_name(elf, sechdr); in section_rel()
1944 if (addend_386_rel(elf, sechdr, &r)) in section_rel()
1948 if (addend_arm_rel(elf, sechdr, &r)) in section_rel()
1952 if (addend_mips_rel(elf, sechdr, &r)) in section_rel()