Home
last modified time | relevance | path

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

123456

/external/elfutils/libelf/
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()
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()
Delf_compress.c52 free (cdatap->d_buf); in do_deflate_cleanup()
122 cdata.d_buf = NULL; in __libelf_compress()
135 cdata.d_buf = malloc (data->d_size); in __libelf_compress()
136 if (cdata.d_buf == NULL) in __libelf_compress()
146 z.next_in = cdata.d_buf; in __libelf_compress()
194 free (cdata.d_buf); in __libelf_compress()
195 cdata.d_buf = NULL; in __libelf_compress()
301 void *buf_in = data->d_buf + hsize; in __libelf_decompress_elf()
317 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.c200 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()
422 if (scn->rawdata.d.d_buf != NULL && scn->rawdata.d.d_size > 0) in __libelf_set_data_list_rdlock()
Delf32_updatefile.c273 <= (char *) scn->data_list.data.d.d_buf) in __elfw2()
274 && ((char *) scn->data_list.data.d.d_buf in __elfw2()
279 > (char *) scn->data_list.data.d.d_buf)) in __elfw2()
288 scn->data_list.data.d.d_buf = scn->data_base in __elfw2()
289 = memcpy (p, scn->data_list.data.d.d_buf, in __elfw2()
357 (*fctp) (last_position, dl->data.d.d_buf, in __elfw2()
371 (*fctp) (converted, dl->data.d.d_buf, size, 1); in __elfw2()
382 memmove (last_position, dl->data.d.d_buf, in __elfw2()
730 void *buf = dl->data.d.d_buf; in __elfw2()
754 (*fctp) (buf, dl->data.d.d_buf, dl->data.d.d_size, 1); in __elfw2()
[all …]
/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()
/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.c92 .d = { .d_buf = (void *) hdr, .d_size = hdr_size } in parse_eh_frame_hdr()
130 if (data == NULL || data->d_buf == NULL) in getcfi_gnu_eh_frame()
142 const uint8_t *search_table = parse_eh_frame_hdr (data->d_buf, phdr->p_filesz, in getcfi_gnu_eh_frame()
152 dmax = phdr->p_filesz - (search_table - (const uint8_t *) data->d_buf); in getcfi_gnu_eh_frame()
220 if (data == NULL || data->d_buf == NULL) in getcfi_scn_eh_frame()
232 if (hdr_data != NULL && hdr_data->d_buf != NULL) in getcfi_scn_eh_frame()
238 = parse_eh_frame_hdr (hdr_data->d_buf, hdr_data->d_size, in getcfi_scn_eh_frame()
249 - (const uint8_t *) hdr_data->d_buf); in getcfi_scn_eh_frame()
Ddwarf_begin_elf.c171 if (data->d_buf == NULL || data->d_size == 0) in check_section()
239 = result->sectiondata[IDX_debug_loc]->d_buf; in valid_p()
241 = (result->sectiondata[IDX_debug_loc]->d_buf in valid_p()
262 = result->sectiondata[IDX_debug_loclists]->d_buf; in valid_p()
264 = (result->sectiondata[IDX_debug_loclists]->d_buf in valid_p()
290 = result->sectiondata[IDX_debug_addr]->d_buf; in valid_p()
292 = (result->sectiondata[IDX_debug_addr]->d_buf in valid_p()
351 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.h460 .addr = ((char *) (fromcu)->dbg->sectiondata[cu_sec_idx (fromcu)]->d_buf \
468 .addr = ((char *) (fromcu)->dbg->sectiondata[cu_sec_idx (fromcu)]->d_buf \
816 || unlikely (data->d_buf == NULL)) in __libdw_checked_get_data()
849 if (unlikely (addr < data->d_buf) in __libdw_in_section()
851 || unlikely ((size_t)(addr - data->d_buf) > data->d_size - size)) in __libdw_in_section()
1057 start = readp = (const unsigned char *) data->d_buf; in str_offsets_base_off()
1058 readendp = (const unsigned char *) data->d_buf + data->d_size; in str_offsets_base_off()
1140 const unsigned char *readp = data->d_buf; in __libdw_cu_ranges_base()
1142 = (unsigned char *) data->d_buf + data->d_size; in __libdw_cu_ranges_base()
1184 - (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()
345 xlatefrom.d_buf = &ehdr.e32; in elf_from_remote_memory()
346 xlateto.d_buf = buffer; in elf_from_remote_memory()
372 xlatefrom.d_buf = &ehdr.e64; in elf_from_remote_memory()
373 xlateto.d_buf = buffer; in elf_from_remote_memory()
Dlink_map.c207 void *contents = data->d_buf + vaddr; in integrated_memory_callback()
795 .d_buf = NULL in dwfl_link_map_report()
797 bool in_ok = (*memory_callback) (dwfl, phdr_segndx, &in.d_buf, in dwfl_link_map_report()
845 assert (in.d_buf == NULL); in dwfl_link_map_report()
850 in.d_buf = malloc (in.d_size); in dwfl_link_map_report()
851 if (unlikely (in.d_buf == NULL)) in dwfl_link_map_report()
858 ssize_t nread = pread_retry (fd, in.d_buf, in.d_size, off); in dwfl_link_map_report()
863 free (in.d_buf); in dwfl_link_map_report()
891 .d_buf = buf in dwfl_link_map_report()
918 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()
187 ? "" : note_data->d_buf + name_offset); in core_set_initial_registers()
188 const char *desc = note_data->d_buf + desc_offset; in core_set_initial_registers()
380 ? "" : note_data->d_buf + name_offset); in dwfl_core_file_attach()
381 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.c52 data->d_buf = (char *) str; /* Discards const, but we will not change. */ in add_strtab_entry()
170 data->d_buf = sec_data; in add_data_section()
181 if (data == NULL || data->d_buf == NULL) in check_data()
187 if (data->d_size != 5 || memcmp (data->d_buf, buf, 5) != 0) in check_data()
191 printf ("%d%s", ((char *)data->d_buf)[i], in check_data()
314 if (data != NULL && data->d_buf != NULL && data->d_size == 0) in check_elf()
330 memcpy (data->d_buf, new_data, 5); in check_elf()
/external/elfutils/src/
Dstrip.c481 if (reldata == NULL || reldata->d_buf == NULL) in remove_debug_relocations()
506 if (tdata == NULL || tdata->d_buf == NULL in remove_debug_relocations()
590 .d_buf = &tmpbuf, in remove_debug_relocations()
597 .d_buf = tdata->d_buf + offset, in remove_debug_relocations()
1255 Elf32_Word *grpref = (Elf32_Word *) shdr_info[cnt].data->d_buf; in handle_elf()
1335 && shdr_info[idx].data->d_buf != NULL in handle_elf()
1341 bool is_comdat = (((Elf32_Word *) shdr_info[idx].data->d_buf)[0] in handle_elf()
1388 grpref = (Elf32_Word *) shdr_info[cnt].data->d_buf; in handle_elf()
1609 debugdata->d_buf = NULL; in handle_elf()
1615 if (debugdata->d_buf == NULL) in handle_elf()
[all …]
/external/nos/host/android/hals/keymaster/test/
Dimport_key_test.cpp207 unique_ptr<uint8_t[]> d_buf(new uint8_t[BN_num_bytes(n)]); in MatchAndExplainRSA() local
208 if (!BN_bn2le_padded(d_buf.get(), BN_num_bytes(n), d)) { in MatchAndExplainRSA()
214 memcmp(request.rsa().d().data(), d_buf.get(), in MatchAndExplainRSA()
276 unique_ptr<uint8_t[]> d_buf(new uint8_t[field_size]); in MatchAndExplainEC() local
277 if (!BN_bn2le_padded(d_buf.get(), field_size, d)) { in MatchAndExplainEC()
282 memcmp(request.ec().d().data(), d_buf.get(), field_size) != 0) { in MatchAndExplainEC()
/external/nos/host/android/hals/keymaster/
Dimport_key.cpp117 bssl::UniquePtr<uint8_t> d_buf( in import_key_rsa() local
119 if (!BN_bn2le_padded(d_buf.get(), BN_num_bytes(n), d)) { in import_key_rsa()
123 request->mutable_rsa()->set_d(d_buf.get(), BN_num_bytes(n)); in import_key_rsa()
221 unique_ptr<uint8_t[]> d_buf(new uint8_t[field_size]); in import_key_ec() local
222 if (!BN_bn2le_padded(d_buf.get(), field_size, d)) { in import_key_ec()
226 request->mutable_ec()->set_d(d_buf.get(), field_size); in import_key_ec()
/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()
473 free (shstrtabdata->d_buf); in binary_end()
475 free (strtabdata->d_buf); in binary_end()
478 free (xndxdata->d_buf); in binary_end()
484 free (elf_getdata (scngrp->scn, NULL)->d_buf); in binary_end()

123456