/external/libnl/lib/ |
D | data.c | 64 data->d_size = size; in nl_data_alloc() 97 return nl_data_alloc(src->d_data, src->d_size); in nl_data_clone() 114 data->d_data = realloc(data->d_data, data->d_size + size); in nl_data_append() 119 memcpy(data->d_data + data->d_size, buf, size); in nl_data_append() 121 memset(data->d_data + data->d_size, 0, size); in nl_data_append() 123 data->d_size += size; in nl_data_append() 155 return data->d_size > 0 ? data->d_data : NULL; in nl_data_get() 165 return data->d_size; in nl_data_get_size()
|
/external/elfutils/libelf/ |
D | elf32_xlatetof.c | 59 if (src->d_size % recsize != 0) in elfw2() 66 if (src->d_size > dest->d_size) in elfw2() 95 memmove (dest->d_buf, src->d_buf, src->d_size); in elfw2() 111 (*fctp) (dest->d_buf, src->d_buf, src->d_size, 1); in elfw2() 117 dest->d_size = src->d_size; in elfw2()
|
D | elf32_xlatetom.c | 64 && src->d_size % recsize != 0) in elfw2() 71 if (src->d_size > dest->d_size) in elfw2() 100 memmove (dest->d_buf, src->d_buf, src->d_size); in elfw2() 116 (*fctp) (dest->d_buf, src->d_buf, src->d_size, 0); in elfw2() 122 dest->d_size = src->d_size; in elfw2()
|
D | gelf_getnote.c | 61 if (unlikely (offset > data->d_size in gelf_getnote() 62 || data->d_size - offset < sizeof (GElf_Nhdr))) in gelf_getnote() 76 if (unlikely (offset > data->d_size in gelf_getnote() 77 || data->d_size - offset < namesz in gelf_getnote() 84 if (unlikely (offset > data->d_size in gelf_getnote() 85 || data->d_size - offset < descsz in gelf_getnote()
|
D | elf_compress.c | 92 && data->d_size <= hsize + 5 + 6) in __libelf_compress() 96 *orig_size = data->d_size; in __libelf_compress() 101 size_t block = (data->d_size / 8) + hsize; in __libelf_compress() 137 cdata.d_buf = malloc (data->d_size); in __libelf_compress() 147 z.avail_in = cdata.d_size; in __libelf_compress() 155 *orig_size += data->d_size; in __libelf_compress() 289 size_t size_in = data->d_size - hsize; in __libelf_decompress_elf() 306 scn->rawdata.d.d_size = size; in __libelf_reset_rawdata()
|
D | elf32_updatefile.c | 295 void *p = malloc (scn->data_list.data.d.d_size); in __elfw2() 303 scn->data_list.data.d.d_size); in __elfw2() 334 assert (dl->data.d.d_size <= (shdr->sh_size in __elfw2() 369 dl->data.d.d_size, 1); in __elfw2() 371 last_position += dl->data.d.d_size; in __elfw2() 373 else if (dl->data.d.d_size != 0) in __elfw2() 376 dl->data.d.d_size); in __elfw2() 381 last_position += dl->data.d.d_size; in __elfw2() 383 assert (scn_start + dl->data.d.d_off + dl->data.d.d_size in __elfw2() 753 if (dl->data.d.d_size > MAX_TMPBUF) in __elfw2() [all …]
|
D | elf_compress_gnu.c | 152 if (data->d_size < hsize || memcmp (data->d_buf, "ZLIB", 4) != 0) in elf_compress_gnu() 169 if (gsize + 4 + 8 + 6 + 5 < data->d_size || gsize > SIZE_MAX) in elf_compress_gnu() 176 size_t size_in = data->d_size - hsize; in elf_compress_gnu()
|
/external/elfutils/src/ |
D | strip.c | 669 || shdr_info[cnt].data->d_size < sizeof (Elf32_Word)) in handle_elf() 676 inner < shdr_info[cnt].data->d_size / sizeof (Elf32_Word); in handle_elf() 742 && shdr_info[idx].data->d_size >= sizeof (Elf32_Word)); in handle_elf() 796 in < shdr_info[cnt].data->d_size / sizeof (Elf32_Word); in handle_elf() 852 inner < shdr_info[cnt].data->d_size / elsize; in handle_elf() 1012 debugdata->d_buf = memcpy (xmalloc (debugdata->d_size), in handle_elf() 1013 debugdata->d_buf, debugdata->d_size); in handle_elf() 1127 shdr_info[cnt].shdr.sh_size = shdr_info[cnt].data->d_size in handle_elf() 1129 debuglink_buf = xcalloc (1, shdr_info[cnt].data->d_size); in handle_elf() 1139 debuglink_crc_data.d_size = 4; in handle_elf() [all …]
|
D | elfcmp.c | 419 while (off1 < data1->d_size in main() 425 if (off2 >= data2->d_size) in main() 494 if (off2 < data2->d_size) in main() 508 || (data1->d_buf != NULL || data1->d_size == 0)); in main() 510 || (data2->d_buf != NULL || data1->d_size == 0)); in main() 512 if (unlikely (data1->d_size != data2->d_size in main() 514 && data1->d_size != 0 in main() 516 data1->d_size) != 0))) in main() 520 && data1->d_size == data2->d_size in main() 843 if (data1->d_size != (2 + nbucket + nchain) * sizeof hash1[0] \ in hash_content_equivalent()
|
/external/elfutils/libdwelf/ |
D | dwelf_elf_gnu_debuglink.c | 68 if (rawdata->d_size <= sizeof *crc in dwelf_elf_gnu_debuglink() 69 || memchr (rawdata->d_buf, '\0', rawdata->d_size - sizeof *crc) == NULL) in dwelf_elf_gnu_debuglink() 76 .d_size = sizeof *crc, in dwelf_elf_gnu_debuglink() 82 .d_buf = rawdata->d_buf + rawdata->d_size - sizeof *crc, in dwelf_elf_gnu_debuglink() 83 .d_size = sizeof *crc, in dwelf_elf_gnu_debuglink()
|
D | dwelf_dwarf_gnu_debugaltlink.c | 46 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()
|
D | dwelf_scn_gnu_compressed_size.c | 56 if (d->d_size >= 4 + 8 in dwelf_scn_gnu_compressed_size() 70 if (size + 4 + 8 + 6 + 5 < d->d_size || size > SIZE_MAX) in dwelf_scn_gnu_compressed_size()
|
/external/elfutils/libdwfl/ |
D | elf-from-memory.c | 118 .d_size = sizeof ehdr, in elf_from_remote_memory() 130 xlatefrom.d_size = sizeof (Elf32_Ehdr); in elf_from_remote_memory() 146 xlatefrom.d_size = sizeof (Elf64_Ehdr); in elf_from_remote_memory() 166 xlatefrom.d_size = phnum * phentsize; in elf_from_remote_memory() 210 xlateto.d_size = phdrsp_bytes; in elf_from_remote_memory() 338 xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e32; in elf_from_remote_memory() 365 xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e64; in elf_from_remote_memory()
|
D | link_map.c | 207 if (unlikely (data->d_size < vaddr)) in integrated_memory_callback() 212 size_t avail = data->d_size - vaddr; in integrated_memory_callback() 610 const size_t n = data->d_size / entsize; in consider_executable() 794 .d_size = phnum * phent, in dwfl_link_map_report() 798 &in.d_size, phdr, phnum * phent, in dwfl_link_map_report() 846 assert (in.d_size == phnum * phent); in dwfl_link_map_report() 847 in.d_buf = malloc (in.d_size); in dwfl_link_map_report() 855 ssize_t nread = pread_retry (fd, in.d_buf, in.d_size, off); in dwfl_link_map_report() 858 if (nread != (ssize_t) in.d_size) in dwfl_link_map_report() 887 .d_size = phnum * phent, in dwfl_link_map_report() [all …]
|
D | dwfl_segment_report_module.c | 355 .d_size = sizeof ehdr, in dwfl_segment_report_module() 364 xlatefrom.d_size = sizeof (Elf32_Ehdr); in dwfl_segment_report_module() 377 xlatefrom.d_size = sizeof (Elf64_Ehdr); in dwfl_segment_report_module() 401 xlatefrom.d_size = phnum * phentsize; in dwfl_segment_report_module() 406 start + phoff, xlatefrom.d_size)) in dwfl_segment_report_module() 421 xlateto.d_size = phdrsp_bytes; in dwfl_segment_report_module() 471 xlatefrom.d_size = filesz; in dwfl_segment_report_module() 473 xlateto.d_size = filesz; in dwfl_segment_report_module() 770 xlatefrom.d_size = dyn_filesz; in dwfl_segment_report_module() 772 xlateto.d_size = dyn_filesz; in dwfl_segment_report_module()
|
/external/elfutils/libdw/ |
D | encoded-value.h | 63 while (end < (uint8_t *) data->d_buf + data->d_size) in encoded_value_size() 88 const unsigned char *endp = cache->data->d.d_buf + cache->data->d.d_size; in __libdw_cfi_read_address_inc() 156 const unsigned char *endp = cache->data->d.d_buf + cache->data->d.d_size; in read_encoded_value() 219 if (unlikely (cache->data->d.d_size < ptrsize in read_encoded_value() 220 || *result > (cache->data->d.d_size - ptrsize))) in read_encoded_value()
|
D | dwarf_getpubnames.c | 52 unsigned char *endp = readp + dbg->sectiondata[IDX_debug_pubnames]->d_size; in get_offsets() 91 size_t max_size = dbg->sectiondata[IDX_debug_pubnames]->d_size; in get_offsets() 159 >= dbg->sectiondata[IDX_debug_pubnames]->d_size))) in dwarf_getpubnames() 189 = startp + dbg->sectiondata[IDX_debug_pubnames]->d_size; in dwarf_getpubnames()
|
D | dwarf_getstring.c | 45 || offset >= dbg->sectiondata[IDX_debug_str]->d_size) in dwarf_getstring() 55 dbg->sectiondata[IDX_debug_str]->d_size - offset); in dwarf_getstring()
|
/external/elfutils/backends/ |
D | ppc64_resolve_sym.c | 47 && *addr + sizeof (Elf64_Addr) <= ebl->fd_addr + ebl->fd_data->d_size) in ppc64_resolve_sym_value() 55 opd_out.d_size = opd_in.d_size = sizeof (Elf64_Addr); in ppc64_resolve_sym_value()
|
/external/elfutils/tests/ |
D | elfputzdata.c | 103 if (d->d_size != orig_size) in main() 108 char *orig_buf = malloc (d->d_size); in main() 156 if (d->d_size != new_size) in main() 207 if (d->d_size != newer_size) in main()
|
D | newdata.c | 58 data->d_size = len; in add_section_data() 210 if (d == NULL || i * len >= d->d_off + d->d_size) in check_section_data() 221 ", d_size: %zd)\n", i, d->d_off, d->d_size); in check_section_data() 328 if (data->d_size != DATA_LEN) in check_elf() 330 printf ("Unexpected Elf_Data: %zd", data->d_size); in check_elf()
|
D | elfstrmerge.c | 297 size_t symsnum = symd->d_size / elsize; in main() 324 if (newstrtabdata.d_size >= shdrstrshdr->sh_size + strtabshdr->sh_size) in main() 477 size_t s = d->d_size; in main() 480 void *b = malloc (d->d_size); in main() 513 size_t syms = (data->d_size in main() 549 size_t words = data->d_size / sizeof (Elf32_Word); in main() 568 size_t words = data->d_size / sizeof (Elf32_Word); in main() 595 newshdr.sh_size = newdata->d_size; in main()
|
/external/elfutils/libebl/ |
D | eblobjnote.c | 78 .d_buf = (void *) desc, .d_size = addrs_size in ebl_object_note() 84 .d_buf = &addrs, .d_size = addrs_size in ebl_object_note() 163 .d_size = descsz, in ebl_object_note() 183 .d_size = descsz, in ebl_object_note()
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | radeon_elf_util.c | 139 binary->code_size = section_data->d_size; in radeon_elf_read() 144 binary->config_size = section_data->d_size; in radeon_elf_read() 151 section_data->d_size); in radeon_elf_read() 154 binary->rodata_size = section_data->d_size; in radeon_elf_read()
|
/external/elfutils/libasm/ |
D | asm_end.c | 123 newdata->d_size = content->len; in binary_end() 172 data->d_size = gelf_fsize (ctx->out.elf, ELF_T_SYM, in binary_end() 174 symtab = malloc (data->d_size); in binary_end() 248 xndxdata->d_size = elf32_fsize (ELF_T_WORD, in binary_end() 251 xshndx = xndxdata->d_buf = calloc (1, xndxdata->d_size); in binary_end() 337 data->d_size = elf32_fsize (ELF_T_WORD, runp->nmembers + 1, in binary_end() 339 grpdata = data->d_buf = malloc (data->d_size); in binary_end()
|