Lines Matching refs:cfi
46 Dwarf_CFI *cfi = calloc (1, sizeof *cfi); in allocate_cfi() local
47 if (cfi == NULL) in allocate_cfi()
53 cfi->e_ident = (unsigned char *) elf_getident (elf, NULL); in allocate_cfi()
54 if (cfi->e_ident == NULL) in allocate_cfi()
56 free (cfi); in allocate_cfi()
61 if ((BYTE_ORDER == LITTLE_ENDIAN && cfi->e_ident[EI_DATA] == ELFDATA2MSB) in allocate_cfi()
62 || (BYTE_ORDER == BIG_ENDIAN && cfi->e_ident[EI_DATA] == ELFDATA2LSB)) in allocate_cfi()
63 cfi->other_byte_order = true; in allocate_cfi()
65 cfi->frame_vaddr = vaddr; in allocate_cfi()
66 cfi->textrel = 0; /* XXX ? */ in allocate_cfi()
67 cfi->datarel = 0; /* XXX ? */ in allocate_cfi()
69 return cfi; in allocate_cfi()
175 Dwarf_CFI *cfi = allocate_cfi (elf, eh_frame_ptr); in getcfi_gnu_eh_frame() local
176 if (cfi != NULL) in getcfi_gnu_eh_frame()
178 cfi->data = (Elf_Data_Scn *) data; in getcfi_gnu_eh_frame()
182 cfi->search_table = search_table; in getcfi_gnu_eh_frame()
183 cfi->search_table_len = phdr->p_filesz; in getcfi_gnu_eh_frame()
184 cfi->search_table_vaddr = phdr->p_vaddr; in getcfi_gnu_eh_frame()
185 cfi->search_table_encoding = search_table_encoding; in getcfi_gnu_eh_frame()
186 cfi->search_table_entries = search_table_entries; in getcfi_gnu_eh_frame()
189 return cfi; in getcfi_gnu_eh_frame()
225 Dwarf_CFI *cfi = allocate_cfi (elf, shdr->sh_addr); in getcfi_scn_eh_frame() local
226 if (cfi != NULL) in getcfi_scn_eh_frame()
228 cfi->data = (Elf_Data_Scn *) data; in getcfi_scn_eh_frame()
236 cfi->search_table_vaddr = hdr_vaddr; in getcfi_scn_eh_frame()
237 cfi->search_table in getcfi_scn_eh_frame()
240 &cfi->search_table_entries, in getcfi_scn_eh_frame()
241 &cfi->search_table_encoding); in getcfi_scn_eh_frame()
242 cfi->search_table_len = hdr_data->d_size; in getcfi_scn_eh_frame()
247 cfi->search_table_encoding, NULL); in getcfi_scn_eh_frame()
248 dmax = hdr_data->d_size - (cfi->search_table in getcfi_scn_eh_frame()
250 if (unlikely (cfi->search_table == (void *) -1l in getcfi_scn_eh_frame()
252 || cfi->search_table_entries > (dmax / vsize) / 2)) in getcfi_scn_eh_frame()
254 free (cfi); in getcfi_scn_eh_frame()
262 cfi->search_table = NULL; in getcfi_scn_eh_frame()
266 return cfi; in getcfi_scn_eh_frame()