Lines Matching refs:Elf_W
36 static Elf_W (Shdr)*
37 elf_w (section_table) (struct elf_image *ei)
39 Elf_W (Ehdr) *ehdr = ei->image;
40 Elf_W (Off) soff;
51 return (Elf_W (Shdr) *) ((char *) ei->image + soff);
55 elf_w (string_table) (struct elf_image *ei, int section)
57 Elf_W (Ehdr) *ehdr = ei->image;
58 Elf_W (Off) soff, str_soff;
59 Elf_W (Shdr) *str_shdr;
72 str_shdr = (Elf_W (Shdr) *) ((char *) ei->image + str_soff);
89 elf_w (lookup_symbol) (unw_addr_space_t as,
91 Elf_W (Addr) load_offset,
92 char *buf, size_t buf_len, Elf_W (Addr) *min_dist)
95 Elf_W (Ehdr) *ehdr = ei->image;
96 Elf_W (Sym) *sym, *symtab, *symtab_end;
97 Elf_W (Shdr) *shdr;
98 Elf_W (Addr) val;
102 if (!elf_w (valid_object) (ei))
105 shdr = elf_w (section_table) (ei);
115 symtab = (Elf_W (Sym) *) ((char *) ei->image + shdr->sh_offset);
116 symtab_end = (Elf_W (Sym) *) ((char *) symtab + shdr->sh_size);
119 strtab = elf_w (string_table) (ei, shdr->sh_link);
128 sym = (Elf_W (Sym) *) ((char *) sym + syment_size))
130 if (ELF_W (ST_TYPE) (sym->st_info) == STT_FUNC
141 if ((Elf_W (Addr)) (ip - val) < *min_dist
142 && (Elf_W (Addr)) (ip - val) < sym->st_size)
145 *min_dist = (Elf_W (Addr)) (ip - val);
158 shdr = (Elf_W (Shdr) *) (((char *) shdr) + ehdr->e_shentsize);
163 static Elf_W (Addr)
164 elf_w (get_load_offset) (struct elf_image *ei, unsigned long segbase,
167 Elf_W (Addr) offset = 0;
168 Elf_W (Ehdr) *ehdr;
169 Elf_W (Phdr) *phdr;
173 phdr = (Elf_W (Phdr) *) ((char *) ei->image + ehdr->e_phoff);
219 elf_w (extract_minidebuginfo) (struct elf_image *ei, struct elf_image *mdi)
221 Elf_W (Ehdr) *ehdr = ei->image;
222 Elf_W (Shdr) *shdr;
229 if (!elf_w (valid_object) (ei))
232 shdr = elf_w (section_table) (ei);
236 strtab = elf_w (string_table) (ei, ehdr->e_shstrndx);
259 shdr = (Elf_W (Shdr) *) (((char *) shdr) + ehdr->e_shentsize);
296 elf_w (extract_minidebuginfo) (struct elf_image *ei, struct elf_image *mdi)
308 elf_w (get_proc_name_in_image) (unw_addr_space_t as, struct elf_image *ei,
314 Elf_W (Addr) load_offset;
315 Elf_W (Addr) min_dist = ~(Elf_W (Addr))0;
318 load_offset = elf_w (get_load_offset) (ei, segbase, mapoff);
319 ret = elf_w (lookup_symbol) (as, ip, ei, load_offset, buf, buf_len, &min_dist);
324 if (elf_w (extract_minidebuginfo) (ei, &mdi))
328 load_offset = elf_w (get_load_offset) (&mdi, segbase, mapoff);
329 ret_mdi = elf_w (lookup_symbol) (as, ip, &mdi, load_offset, buf,
350 elf_w (get_proc_name) (unw_addr_space_t as, pid_t pid, unw_word_t ip,
361 return elf_w (get_proc_name_in_image) (as, &ei, segbase, mapoff, ip, buf, buf_len, offp);