Lines Matching refs:shdr

143   Elf_W(Shdr) shdr;  in elf_w()
144 GET_SHDR_FIELD(ei, str_soff, &shdr, sh_offset); in elf_w()
145 GET_SHDR_FIELD(ei, str_soff, &shdr, sh_size); in elf_w()
146 if (shdr.sh_offset + shdr.sh_size > size) { in elf_w()
148 (unsigned long) (shdr.sh_offset + shdr.sh_size), in elf_w()
153 Debug (16, "strtab=0x%lx\n", (long) shdr.sh_offset); in elf_w()
154 *offset = shdr.sh_offset; in elf_w()
170 Elf_W(Shdr) shdr; in elf_w()
171 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_type); in elf_w()
172 switch (shdr.sh_type) { in elf_w()
176 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_link); in elf_w()
179 if (!elf_w (string_table_offset) (ei, shdr.sh_link, ehdr, &strtab_offset)) { in elf_w()
183 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_offset); in elf_w()
184 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_size); in elf_w()
185 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_entsize); in elf_w()
187 Debug (16, "symtab=0x%lx[%d]\n", (long) shdr.sh_offset, shdr.sh_type); in elf_w()
190 unw_word_t symtab_end = shdr.sh_offset + shdr.sh_size; in elf_w()
191 for (sym_offset = shdr.sh_offset; in elf_w()
193 sym_offset += shdr.sh_entsize) { in elf_w()
315 Elf_W(Shdr)* shdr = elf_w (section_table) (ei); in elf_w()
316 if (!shdr) { in elf_w()
323 switch (shdr->sh_type) { in elf_w()
327 Elf_W(Sym)* symtab = (Elf_W(Sym) *) ((char *) ei->u.mapped.image + shdr->sh_offset); in elf_w()
328 Elf_W(Sym)* symtab_end = (Elf_W(Sym) *) ((char *) symtab + shdr->sh_size); in elf_w()
330 char* strtab = elf_w (string_table) (ei, shdr->sh_link); in elf_w()
335 Debug (16, "symtab=0x%lx[%d]\n", (long) shdr->sh_offset, shdr->sh_type); in elf_w()
340 sym = (Elf_W(Sym) *) ((char *) sym + shdr->sh_entsize)) { in elf_w()
386 shdr = (Elf_W(Shdr) *) (((char *) shdr) + ehdr->e_shentsize); in elf_w()
521 Elf_W (Shdr) *shdr; in elf_w()
529 shdr = elf_w (section_table) (ei); in elf_w()
530 if (!shdr) { in elf_w()
540 if (strcmp (strtab + shdr->sh_name, name) == 0) { in elf_w()
542 if (shdr->sh_offset + shdr->sh_size > ei->u.mapped.size) { in elf_w()
544 (unsigned long) (shdr->sh_offset + shdr->sh_size), in elf_w()
548 *section = ((uint8_t *) ei->u.mapped.image) + shdr->sh_offset; in elf_w()
549 *size = shdr->sh_size; in elf_w()
552 *vaddr = shdr->sh_addr; in elf_w()
556 shdr = (Elf_W (Shdr) *) (((char *) shdr) + ehdr->e_shentsize); in elf_w()