Lines Matching refs:sechdr
306 static const char *sech_name(struct elf_info *elf, Elf_Shdr *sechdr) in sech_name() argument
310 sechdr->sh_name; in sech_name()
925 Elf_Shdr *sechdr) in check_section() argument
927 const char *sec = sech_name(elf, sechdr); in check_section()
929 if (sechdr->sh_type == SHT_PROGBITS && in check_section()
930 !(sechdr->sh_flags & SHF_ALLOC) && in check_section()
1773 Elf_Shdr *sechdr, Elf_Rela *r) in reloc_location() argument
1776 int section = sechdr->sh_info; in reloc_location()
1782 static int addend_386_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_386_rel() argument
1785 unsigned int *location = reloc_location(elf, sechdr, r); in addend_386_rel()
1825 static int addend_arm_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_arm_rel() argument
1829 void *loc = reloc_location(elf, sechdr, r); in addend_arm_rel()
1850 sechdr->sh_offset + in addend_arm_rel()
1851 (r->r_offset - sechdr->sh_addr)); in addend_arm_rel()
1859 static int addend_mips_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) in addend_mips_rel() argument
1862 unsigned int *location = reloc_location(elf, sechdr, r); in addend_mips_rel()
1883 Elf_Shdr *sechdr) in section_rela() argument
1891 Elf_Rela *start = (void *)elf->hdr + sechdr->sh_offset; in section_rela()
1892 Elf_Rela *stop = (void *)start + sechdr->sh_size; in section_rela()
1894 fromsec = sech_name(elf, sechdr); in section_rela()
1929 Elf_Shdr *sechdr) in section_rel() argument
1937 Elf_Rel *start = (void *)elf->hdr + sechdr->sh_offset; in section_rel()
1938 Elf_Rel *stop = (void *)start + sechdr->sh_size; in section_rel()
1940 fromsec = sech_name(elf, sechdr); in section_rel()
1966 if (addend_386_rel(elf, sechdr, &r)) in section_rel()
1970 if (addend_arm_rel(elf, sechdr, &r)) in section_rel()
1974 if (addend_mips_rel(elf, sechdr, &r)) in section_rel()