Lines Matching refs:shdr
36 static Elf_W (Shdr)*
51 return (Elf_W (Shdr) *) ((char *) ei->image + soff);
59 Elf_W (Shdr) *str_shdr;
67 Debug (1, "string shdr table outside of image? (%lu > %lu)\n",
72 str_shdr = (Elf_W (Shdr) *) ((char *) ei->image + str_soff);
97 Elf_W (Shdr) *shdr;
105 shdr = elf_w (section_table) (ei);
106 if (!shdr)
111 switch (shdr->sh_type)
115 symtab = (Elf_W (Sym) *) ((char *) ei->image + shdr->sh_offset);
116 symtab_end = (Elf_W (Sym) *) ((char *) symtab + shdr->sh_size);
117 syment_size = shdr->sh_entsize;
119 strtab = elf_w (string_table) (ei, shdr->sh_link);
124 (long) shdr->sh_offset, shdr->sh_type);
158 shdr = (Elf_W (Shdr) *) (((char *) shdr) + ehdr->e_shentsize);
222 Elf_W (Shdr) *shdr;
232 shdr = elf_w (section_table) (ei);
233 if (!shdr)
242 if (strcmp (strtab + shdr->sh_name, ".gnu_debugdata") == 0)
244 if (shdr->sh_offset + shdr->sh_size > ei->size)
247 (unsigned long) shdr->sh_offset + shdr->sh_size,
253 (unsigned long) shdr->sh_offset);
254 compressed = ((uint8_t *) ei->image) + shdr->sh_offset;
255 compressed_len = shdr->sh_size;
259 shdr = (Elf_W (Shdr) *) (((char *) shdr) + ehdr->e_shentsize);