Lines Matching refs:edi

36 find_gp (struct elf_dyn_info *edi, Elf64_Phdr *pdyn, Elf64_Addr load_base)  in find_gp()  argument
39 Elf64_Ehdr *ehdr = edi->ei.image; in find_gp()
50 Elf64_Dyn *dyn = (Elf64_Dyn *) (pdyn->p_offset + (char *) edi->ei.image); in find_gp()
67 if (soff + ehdr->e_shnum * ehdr->e_shentsize > edi->ei.size) in find_gp()
71 edi->ei.size); in find_gp()
75 shdr = (Elf64_Shdr *) ((char *) edi->ei.image + soff); in find_gp()
76 str_shdr = (Elf64_Shdr *) ((char *) edi->ei.image + str_soff); in find_gp()
77 strtab = (char *) edi->ei.image + str_shdr->sh_offset; in find_gp()
83 gp = ((Elf64_Addr *) ((char *) edi->ei.image + shdr->sh_offset))[1]; in find_gp()
90 Debug (16, "image at %p, gp = %lx\n", edi->ei.image, gp); in find_gp()
95 ia64_find_unwind_table (struct elf_dyn_info *edi, unw_addr_space_t as, in ia64_find_unwind_table() argument
103 if (!_Uelf64_valid_object (&edi->ei)) in ia64_find_unwind_table()
106 ehdr = edi->ei.image; in ia64_find_unwind_table()
107 phdr = (Elf64_Phdr *) ((char *) edi->ei.image + ehdr->e_phoff); in ia64_find_unwind_table()
133 edi->di_cache.start_ip = segbase; in ia64_find_unwind_table()
134 edi->di_cache.end_ip = edi->di_cache.start_ip + ptxt->p_memsz; in ia64_find_unwind_table()
135 edi->di_cache.gp = find_gp (edi, pdyn, segbase - ptxt->p_vaddr); in ia64_find_unwind_table()
136 edi->di_cache.format = UNW_INFO_FORMAT_TABLE; in ia64_find_unwind_table()
137 edi->di_cache.u.ti.name_ptr = 0; in ia64_find_unwind_table()
138 edi->di_cache.u.ti.segbase = segbase; in ia64_find_unwind_table()
139 edi->di_cache.u.ti.table_len = punw->p_memsz / sizeof (unw_word_t); in ia64_find_unwind_table()
140 edi->di_cache.u.ti.table_data = (unw_word_t *) in ia64_find_unwind_table()
141 ((char *) edi->ei.image + (punw->p_vaddr - ptxt->p_vaddr)); in ia64_find_unwind_table()