Lines Matching refs:shdr
141 Elf_W(Shdr) shdr; in elf_w()
142 GET_SHDR_FIELD(ei, str_soff, &shdr, sh_offset); in elf_w()
143 GET_SHDR_FIELD(ei, str_soff, &shdr, sh_size); in elf_w()
144 if (shdr.sh_offset + shdr.sh_size > size) { in elf_w()
146 (unsigned long) (shdr.sh_offset + shdr.sh_size), in elf_w()
151 Debug (16, "strtab=0x%lx\n", (long) shdr.sh_offset); in elf_w()
152 *offset = shdr.sh_offset; in elf_w()
168 Elf_W(Shdr) shdr; in elf_w()
169 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_type); in elf_w()
170 switch (shdr.sh_type) { in elf_w()
174 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_link); in elf_w()
177 if (!elf_w (string_table_offset) (ei, shdr.sh_link, ehdr, &strtab_offset)) { in elf_w()
181 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_offset); in elf_w()
182 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_size); in elf_w()
183 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_entsize); in elf_w()
185 Debug (16, "symtab=0x%lx[%d]\n", (long) shdr.sh_offset, shdr.sh_type); in elf_w()
188 unw_word_t symtab_end = shdr.sh_offset + shdr.sh_size; in elf_w()
189 for (sym_offset = shdr.sh_offset; in elf_w()
191 sym_offset += shdr.sh_entsize) { in elf_w()
313 Elf_W(Shdr)* shdr = elf_w (section_table) (ei); in elf_w()
314 if (!shdr) { in elf_w()
321 switch (shdr->sh_type) { in elf_w()
325 Elf_W(Sym)* symtab = (Elf_W(Sym) *) ((char *) ei->u.mapped.image + shdr->sh_offset); in elf_w()
326 Elf_W(Sym)* symtab_end = (Elf_W(Sym) *) ((char *) symtab + shdr->sh_size); in elf_w()
328 char* strtab = elf_w (string_table) (ei, shdr->sh_link); in elf_w()
333 Debug (16, "symtab=0x%lx[%d]\n", (long) shdr->sh_offset, shdr->sh_type); in elf_w()
338 sym = (Elf_W(Sym) *) ((char *) sym + shdr->sh_entsize)) { in elf_w()
384 shdr = (Elf_W(Shdr) *) (((char *) shdr) + ehdr->e_shentsize); in elf_w()
473 Elf_W(Shdr)* shdr; in elf_w()
484 shdr = elf_w (section_table) (ei); in elf_w()
485 if (!shdr) { in elf_w()
495 if (strcmp (strtab + shdr->sh_name, ".gnu_debugdata") == 0) { in elf_w()
496 if (shdr->sh_offset + shdr->sh_size > ei->size) { in elf_w()
498 (unsigned long) shdr->sh_offset + shdr->sh_size, in elf_w()
504 (unsigned long) shdr->sh_offset); in elf_w()
505 compressed = ((uint8_t *) ei->image) + shdr->sh_offset; in elf_w()
506 compressed_len = shdr->sh_size; in elf_w()
510 shdr = (Elf_W(Shdr) *) (((char *) shdr) + ehdr->e_shentsize); in elf_w()