Lines Matching refs:sechdr
321 Elf_Shdr *sechdr = &info->sechdrs[secindex];
324 offset -= sechdr->sh_addr;
326 return (void *)info->hdr + sechdr->sh_offset + offset;
335 static const char *sech_name(const struct elf_info *info, Elf_Shdr *sechdr)
338 sechdr->sh_name);
902 Elf_Shdr *sechdr)
904 const char *sec = sech_name(elf, sechdr);
906 if (sechdr->sh_type == SHT_PROGBITS &&
907 !(sechdr->sh_flags & SHF_ALLOC) &&
1750 Elf_Shdr *sechdr, Elf_Rela *r)
1752 return sym_get_data_by_offset(elf, sechdr->sh_info, r->r_offset);
1755 static int addend_386_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r)
1758 unsigned int *location = reloc_location(elf, sechdr, r);
1798 static int addend_arm_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r)
1802 void *loc = reloc_location(elf, sechdr, r);
1823 sechdr->sh_offset +
1824 (r->r_offset - sechdr->sh_addr));
1832 static int addend_mips_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r)
1835 unsigned int *location = reloc_location(elf, sechdr, r);
1864 Elf_Shdr *sechdr)
1872 Elf_Rela *start = (void *)elf->hdr + sechdr->sh_offset;
1873 Elf_Rela *stop = (void *)start + sechdr->sh_size;
1875 fromsec = sech_name(elf, sechdr);
1917 Elf_Shdr *sechdr)
1925 Elf_Rel *start = (void *)elf->hdr + sechdr->sh_offset;
1926 Elf_Rel *stop = (void *)start + sechdr->sh_size;
1928 fromsec = sech_name(elf, sechdr);
1954 if (addend_386_rel(elf, sechdr, &r))
1958 if (addend_arm_rel(elf, sechdr, &r))
1962 if (addend_mips_rel(elf, sechdr, &r))