Home
last modified time | relevance | path

Searched refs:d_buf (Results 1 – 25 of 125) sorted by relevance

12345

/external/elfutils/libelf/
Delf32_xlatetof.c90 if (src->d_buf != dest->d_buf) in elfw2()
91 memmove (dest->d_buf, src->d_buf, src->d_size); in elfw2()
99 (*fctp) (dest->d_buf, src->d_buf, src->d_size, 1); in elfw2()
Delf32_xlatetom.c95 if (src->d_buf != dest->d_buf) in elfw2()
96 memmove (dest->d_buf, src->d_buf, src->d_size); in elfw2()
104 (*fctp) (dest->d_buf, src->d_buf, src->d_size, 0); in elfw2()
Delf_compress.c52 free (cdatap->d_buf); in do_deflate_cleanup()
121 cdata.d_buf = NULL; in __libelf_compress()
134 cdata.d_buf = malloc (data->d_size); in __libelf_compress()
135 if (cdata.d_buf == NULL) in __libelf_compress()
145 z.next_in = cdata.d_buf; in __libelf_compress()
193 free (cdata.d_buf); in __libelf_compress()
194 cdata.d_buf = NULL; in __libelf_compress()
299 void *buf_in = data->d_buf + hsize; in __libelf_decompress_elf()
315 scn->rawdata.d.d_buf = buf; in __libelf_reset_rawdata()
Dgelf_getsymshndx.c74 shndx = ((Elf32_Word *) shndxdata_scn->d.d_buf)[ndx]; in gelf_getsymshndx()
94 src = &((Elf32_Sym *) symdata->d_buf)[ndx]; in gelf_getsymshndx()
123 *dst = ((GElf_Sym *) symdata->d_buf)[ndx]; in gelf_getsymshndx()
Dgelf_update_symshndx.c77 shndx = &((Elf32_Word *) shndxdata_scn->d.d_buf)[ndx]; in gelf_update_symshndx()
106 sym = &((Elf32_Sym *) symdata_scn->d.d_buf)[ndx]; in gelf_update_symshndx()
129 ((Elf64_Sym *) symdata_scn->d.d_buf)[ndx] = *src; in gelf_update_symshndx()
Delf_getdata.c198 scn->data_list.data.d.d_buf = scn->data_base; in convert_data()
313 scn->rawdata_base = scn->rawdata.d.d_buf in __libelf_set_rawdata_wrlock()
331 scn->rawdata_base = scn->rawdata.d.d_buf in __libelf_set_rawdata_wrlock()
333 if (scn->rawdata.d.d_buf == NULL) in __libelf_set_rawdata_wrlock()
339 ssize_t n = pread_retry (elf->fildes, scn->rawdata.d.d_buf, size, in __libelf_set_rawdata_wrlock()
344 free (scn->rawdata.d.d_buf); in __libelf_set_rawdata_wrlock()
345 scn->rawdata_base = scn->rawdata.d.d_buf = NULL; in __libelf_set_rawdata_wrlock()
428 if (scn->rawdata.d.d_buf != NULL && scn->rawdata.d.d_size > 0) in __libelf_set_data_list_rdlock()
Delf32_getchdr.c76 if (d->d_size < sizeof (ElfW2(LIBELFBITS,Chdr)) || d->d_buf == NULL) in ElfW2()
82 return (ElfW2(LIBELFBITS,Chdr) *) d->d_buf; in ElfW2()
/external/elfutils/libdwelf/
Ddwelf_elf_gnu_debuglink.c63 if (rawdata == NULL || rawdata->d_buf == NULL) in dwelf_elf_gnu_debuglink()
69 || memchr (rawdata->d_buf, '\0', rawdata->d_size - sizeof *crc) == NULL) in dwelf_elf_gnu_debuglink()
75 .d_buf = crc, in dwelf_elf_gnu_debuglink()
82 .d_buf = rawdata->d_buf + rawdata->d_size - sizeof *crc, in dwelf_elf_gnu_debuglink()
97 return rawdata->d_buf; in dwelf_elf_gnu_debuglink()
Ddwelf_dwarf_gnu_debugaltlink.c46 const void *ptr = memchr (data->d_buf, '\0', data->d_size); in dwelf_dwarf_gnu_debugaltlink()
52 size_t build_id_len = data->d_size - (ptr - data->d_buf + 1); in dwelf_dwarf_gnu_debugaltlink()
58 *name_p = data->d_buf; in dwelf_dwarf_gnu_debugaltlink()
Ddwelf_scn_gnu_compressed_size.c57 && memcmp (d->d_buf, "ZLIB", 4) == 0) in dwelf_scn_gnu_compressed_size()
63 memcpy (&size, d->d_buf + 4, sizeof size); in dwelf_scn_gnu_compressed_size()
/external/elfutils/libdw/
Dlibdw_findcu.c71 unsigned char *dbg1_start = dbg1_data->d_buf; in __libdw_finddbg_cb()
75 unsigned char *dbg2_start = dbg2_data->d_buf; in __libdw_finddbg_cb()
170 newp->startp = data->d_buf + newp->start; in __libdw_intern_next_unit()
171 newp->endp = data->d_buf + newp->end; in __libdw_intern_next_unit()
267 if (addr >= dbg->sectiondata[IDX_debug_info]->d_buf in __libdw_findcu_addr()
268 && addr < (dbg->sectiondata[IDX_debug_info]->d_buf in __libdw_findcu_addr()
272 start = addr - dbg->sectiondata[IDX_debug_info]->d_buf; in __libdw_findcu_addr()
275 && addr >= dbg->sectiondata[IDX_debug_types]->d_buf in __libdw_findcu_addr()
276 && addr < (dbg->sectiondata[IDX_debug_types]->d_buf in __libdw_findcu_addr()
280 start = addr - dbg->sectiondata[IDX_debug_types]->d_buf; in __libdw_findcu_addr()
[all …]
Dencoded-value.h63 while (end < (uint8_t *) data->d_buf + data->d_size) in encoded_value_size()
89 const unsigned char *endp = cache->data->d.d_buf + cache->data->d.d_size; in __libdw_cfi_read_address_inc()
123 + (*p - (const uint8_t *) cache->data->d.d_buf)); in read_encoded_value()
144 + (*p - (const uint8_t *) cache->data->d.d_buf)) in read_encoded_value()
157 const unsigned char *endp = cache->data->d.d_buf + cache->data->d.d_size; in read_encoded_value()
223 const uint8_t *ptr = cache->data->d.d_buf + *result; in read_encoded_value()
Ddwarf_getcfi_elf.c94 .d = { .d_buf = (void *) hdr, .d_size = hdr_size } in parse_eh_frame_hdr()
132 if (data == NULL || data->d_buf == NULL) in getcfi_gnu_eh_frame()
144 const uint8_t *search_table = parse_eh_frame_hdr (data->d_buf, phdr->p_filesz, in getcfi_gnu_eh_frame()
154 dmax = phdr->p_filesz - (search_table - (const uint8_t *) data->d_buf); in getcfi_gnu_eh_frame()
222 if (data == NULL || data->d_buf == NULL) in getcfi_scn_eh_frame()
234 if (hdr_data != NULL && hdr_data->d_buf != NULL) in getcfi_scn_eh_frame()
240 = parse_eh_frame_hdr (hdr_data->d_buf, hdr_data->d_size, in getcfi_scn_eh_frame()
251 - (const uint8_t *) hdr_data->d_buf); in getcfi_scn_eh_frame()
Ddwarf_begin_elf.c175 if (data->d_buf == NULL || data->d_size == 0) in check_section()
243 = result->sectiondata[IDX_debug_loc]->d_buf; in valid_p()
245 = (result->sectiondata[IDX_debug_loc]->d_buf in valid_p()
270 = result->sectiondata[IDX_debug_loclists]->d_buf; in valid_p()
272 = (result->sectiondata[IDX_debug_loclists]->d_buf in valid_p()
302 = result->sectiondata[IDX_debug_addr]->d_buf; in valid_p()
304 = (result->sectiondata[IDX_debug_addr]->d_buf in valid_p()
367 Elf32_Word *scnidx = (Elf32_Word *) data->d_buf; in scngrp_read()
Ddwarf_getpubnames.c50 unsigned char *const startp = dbg->sectiondata[IDX_debug_pubnames]->d_buf; in get_offsets()
115 = ((unsigned char *) dbg->sectiondata[IDX_debug_info]->d_buf in get_offsets()
187 = (unsigned char *) dbg->sectiondata[IDX_debug_pubnames]->d_buf; in dwarf_getpubnames()
238 startp = (unsigned char *) dbg->sectiondata[IDX_debug_pubnames]->d_buf; in dwarf_getpubnames()
DlibdwP.h464 .addr = ((char *) (fromcu)->dbg->sectiondata[cu_sec_idx (fromcu)]->d_buf \
472 .addr = ((char *) (fromcu)->dbg->sectiondata[cu_sec_idx (fromcu)]->d_buf \
837 || unlikely (data->d_buf == NULL)) in __libdw_checked_get_data()
870 if (unlikely (addr < data->d_buf) in __libdw_in_section()
872 || unlikely ((size_t)(addr - data->d_buf) > data->d_size - size)) in __libdw_in_section()
1078 start = readp = (const unsigned char *) data->d_buf; in str_offsets_base_off()
1079 readendp = (const unsigned char *) data->d_buf + data->d_size; in str_offsets_base_off()
1161 const unsigned char *readp = data->d_buf; in __libdw_cu_ranges_base()
1163 = (unsigned char *) data->d_buf + data->d_size; in __libdw_cu_ranges_base()
1205 - (unsigned char *) data->d_buf); in __libdw_cu_ranges_base()
[all …]
/external/elfutils/libebl/
Deblobjnote.c83 .d_buf = (void *) desc, .d_size = addrs_size in ebl_object_note()
89 .d_buf = &addrs, .d_size = addrs_size in ebl_object_note()
166 .d_buf = (void *) desc, .d_size = descsz in ebl_object_note()
172 .d_buf = &addrs, .d_size = descsz in ebl_object_note()
332 .d_buf = (void *) desc in ebl_object_note()
339 .d_buf = (void *) &prop in ebl_object_note()
382 in.d_buf = (void *) desc; in ebl_object_note()
383 out.d_buf = (elfclass == ELFCLASS32 in ebl_object_note()
428 in.d_buf = (void *) desc; in ebl_object_note()
429 out.d_buf = (void *) &data; in ebl_object_note()
[all …]
/external/elfutils/libdwfl/
Delf-from-memory.c111 .d_buf = buffer, in elf_from_remote_memory()
117 .d_buf = &ehdr, in elf_from_remote_memory()
176 xlatefrom.d_buf = buffer + phoff; in elf_from_remote_memory()
197 xlatefrom.d_buf = buffer; in elf_from_remote_memory()
215 xlateto.d_buf = phdrsp; in elf_from_remote_memory()
338 xlateto.d_buf = buffer; in elf_from_remote_memory()
342 xlatefrom.d_buf = &ehdr.e32; in elf_from_remote_memory()
350 xlatefrom.d_buf = &ehdr.e64; in elf_from_remote_memory()
Dlink_map.c207 void *contents = data->d_buf + vaddr; in integrated_memory_callback()
796 .d_buf = NULL in dwfl_link_map_report()
798 bool in_ok = (*memory_callback) (dwfl, phdr_segndx, &in.d_buf, in dwfl_link_map_report()
846 assert (in.d_buf == NULL); in dwfl_link_map_report()
851 in.d_buf = malloc (in.d_size); in dwfl_link_map_report()
852 if (unlikely (in.d_buf == NULL)) in dwfl_link_map_report()
859 ssize_t nread = pread_retry (fd, in.d_buf, in.d_size, off); in dwfl_link_map_report()
864 free (in.d_buf); in dwfl_link_map_report()
892 .d_buf = buf in dwfl_link_map_report()
936 free (in.d_buf); in dwfl_link_map_report()
[all …]
Dlinux-core-attach.c89 *result = read_8ubyte_unaligned_noncvt (data->d_buf); in core_memory_read()
91 *result = read_4ubyte_unaligned_noncvt (data->d_buf); in core_memory_read()
133 ? "" : note_data->d_buf + name_offset); in core_next_thread()
134 const char *desc = note_data->d_buf + desc_offset; in core_next_thread()
188 ? "" : note_data->d_buf + name_offset); in core_set_initial_registers()
189 const char *desc = note_data->d_buf + desc_offset; in core_set_initial_registers()
381 ? "" : note_data->d_buf + name_offset); in dwfl_core_file_attach()
382 const char *desc = note_data->d_buf + desc_offset; in dwfl_core_file_attach()
/external/elfutils/backends/
Dppc64_resolve_sym.c53 opd_in.d_buf = ebl->fd_data->d_buf + (*addr - ebl->fd_addr); in ppc64_resolve_sym_value()
54 opd_out.d_buf = addr; in ppc64_resolve_sym_value()
/external/elfutils/tests/
Dfillfile.c53 data->d_buf = (char *) str; /* Discards const, but we will not change. */ in add_strtab_entry()
171 data->d_buf = sec_data; in add_data_section()
182 if (data == NULL || data->d_buf == NULL) in check_data()
188 if (data->d_size != 5 || memcmp (data->d_buf, buf, 5) != 0) in check_data()
192 printf ("%d%s", ((char *)data->d_buf)[i], in check_data()
315 if (data != NULL && data->d_buf != NULL && data->d_size == 0) in check_elf()
331 memcpy (data->d_buf, new_data, 5); in check_elf()
Dxlate_notes.c118 src.d_buf = raw->d_buf + off; in main()
119 dst.d_buf = &nh; in main()
/external/elfutils/src/
Dstrip.c497 .d_buf = &tmpbuf, in relocate()
504 .d_buf = tdata->d_buf + offset, in relocate()
602 if (reldata == NULL || reldata->d_buf == NULL) in remove_debug_relocations()
627 if (tdata == NULL || tdata->d_buf == NULL in remove_debug_relocations()
1301 Elf32_Word *grpref = (Elf32_Word *) shdr_info[cnt].data->d_buf; in handle_elf()
1381 && shdr_info[idx].data->d_buf != NULL in handle_elf()
1387 bool is_comdat = (((Elf32_Word *) shdr_info[idx].data->d_buf)[0] in handle_elf()
1434 grpref = (Elf32_Word *) shdr_info[cnt].data->d_buf; in handle_elf()
1660 debugdata->d_buf = NULL; in handle_elf()
1666 if (debugdata->d_buf == NULL) in handle_elf()
[all …]
/external/elfutils/libasm/
Dasm_end.c120 newdata->d_buf = content->data; in binary_end()
176 data->d_buf = symtab; in binary_end()
251 xshndx = xndxdata->d_buf = calloc (1, xndxdata->d_size); in binary_end()
340 grpdata = data->d_buf = malloc (data->d_size); in binary_end()
477 free (shstrtabdata->d_buf); in binary_end()
479 free (strtabdata->d_buf); in binary_end()
482 free (xndxdata->d_buf); in binary_end()
488 free (elf_getdata (scngrp->scn, NULL)->d_buf); in binary_end()

12345