/third_party/elfutils/libelf/ |
D | elf32_xlatetof.c | 54 if (src->d_size % recsize != 0) in elfw2() 61 if (src->d_size > dest->d_size) in elfw2() 90 memmove (dest->d_buf, src->d_buf, src->d_size); in elfw2() 98 (*fctp) (dest->d_buf, src->d_buf, src->d_size, 1); in elfw2() 104 dest->d_size = src->d_size; in elfw2()
|
D | elf32_xlatetom.c | 59 && 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() 103 (*fctp) (dest->d_buf, src->d_buf, src->d_size, 0); in elfw2() 109 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() 72 if (offset > data->d_size) in gelf_getnote() 83 if (n->n_namesz > data->d_size in gelf_getnote() 84 || offset > data->d_size - n->n_namesz) in gelf_getnote() 99 if (unlikely (offset > data->d_size in gelf_getnote() 100 || data->d_size - offset < descsz in gelf_getnote()
|
D | elf32_updatefile.c | 278 void *p = malloc (scn->data_list.data.d.d_size); in __elfw2() 287 scn->data_list.data.d.d_size); in __elfw2() 318 assert (dl->data.d.d_size <= (shdr->sh_size in __elfw2() 341 && dl->data.d.d_size != 0 in __elfw2() 355 dl->data.d.d_size, 1); in __elfw2() 364 size_t size = dl->data.d.d_size; in __elfw2() 390 last_position += dl->data.d.d_size; in __elfw2() 392 else if (dl->data.d.d_size != 0) in __elfw2() 395 dl->data.d.d_size); in __elfw2() 396 last_position += dl->data.d.d_size; in __elfw2() [all …]
|
D | elf_compress.c | 86 && data->d_size <= hsize + 5 + 6) in __libelf_compress() 90 *orig_size = data->d_size; in __libelf_compress() 95 size_t block = (data->d_size / 8) + hsize; in __libelf_compress() 127 bool convert = ei_data != MY_ELFDATA && data->d_size > 0; in __libelf_compress() 132 cdata.d_buf = malloc (data->d_size); in __libelf_compress() 142 z.avail_in = cdata.d_size; in __libelf_compress() 150 *orig_size += data->d_size; in __libelf_compress() 296 size_t size_in = data->d_size - hsize; in __libelf_decompress_elf() 314 scn->rawdata.d.d_size = size; in __libelf_reset_rawdata()
|
/third_party/elfutils/libdwfl/ |
D | link_map.c | 202 if (unlikely (data->d_size < vaddr)) in integrated_memory_callback() 207 size_t avail = data->d_size - vaddr; in integrated_memory_callback() 631 const size_t n = data->d_size / entsize; in consider_executable() 796 .d_size = phnum * phent, in dwfl_link_map_report() 800 &in.d_size, phdr, phnum * phent, in dwfl_link_map_report() 856 in.d_size = phnum * phent; in dwfl_link_map_report() 857 in.d_buf = malloc (in.d_size); in dwfl_link_map_report() 865 ssize_t nread = pread_retry (fd, in.d_buf, in.d_size, off); in dwfl_link_map_report() 868 if (nread != (ssize_t) in.d_size) in dwfl_link_map_report() 887 if (nbytes > in.d_size) in dwfl_link_map_report() [all …]
|
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() 151 xlatefrom.d_size = sizeof (Elf64_Ehdr); in elf_from_remote_memory() 172 xlatefrom.d_size = phnum * phentsize; in elf_from_remote_memory() 216 xlateto.d_size = phdrsp_bytes; in elf_from_remote_memory() 341 xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e32; in elf_from_remote_memory() 349 xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e64; in elf_from_remote_memory()
|
D | dwfl_segment_report_module.c | 369 .d_size = sizeof ehdr, in dwfl_segment_report_module() 392 xlatefrom.d_size = sizeof (Elf32_Ehdr); in dwfl_segment_report_module() 410 xlatefrom.d_size = sizeof (Elf64_Ehdr); in dwfl_segment_report_module() 435 xlatefrom.d_size = phnum * phentsize; in dwfl_segment_report_module() 441 start + phoff, xlatefrom.d_size)) in dwfl_segment_report_module() 452 xlatefrom.d_size = ph_buffer_size; in dwfl_segment_report_module() 467 xlateto.d_size = phdrsp_bytes; in dwfl_segment_report_module() 572 xlatefrom.d_size = filesz; in dwfl_segment_report_module() 574 xlateto.d_size = filesz; in dwfl_segment_report_module() 841 xlatefrom.d_size = dyn_filesz; in dwfl_segment_report_module() [all …]
|
/third_party/elfutils/libebl/ |
D | eblobjnote.c | 83 .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() 335 .d_size = 8, in ebl_object_note() 342 .d_size = descsz, in ebl_object_note() 384 in.d_size = prop.pr_datasz; in ebl_object_note() 385 out.d_size = prop.pr_datasz; in ebl_object_note() 430 in.d_size = 4; in ebl_object_note() 431 out.d_size = 4; in ebl_object_note() [all …]
|
/third_party/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()
|
/third_party/elfutils/src/ |
D | strip.c | 474 if (offset > tdata->d_size in relocate() 475 || tdata->d_size - offset < size) in relocate() 495 .d_size = size, in relocate() 502 .d_size = size, in relocate() 725 shdr->sh_size = reldata->d_size = nrels * shdr->sh_entsize; in remove_debug_relocations() 963 shdr->sh_size = newdata->d_size; in update_section_size() 973 debugdata->d_size = newdata->d_size; in update_section_size() 1305 || shdr_info[cnt].data->d_size < sizeof (Elf32_Word)) in handle_elf() 1312 inner < shdr_info[cnt].data->d_size / sizeof (Elf32_Word); in handle_elf() 1390 && shdr_info[idx].data->d_size >= sizeof (Elf32_Word)); in handle_elf() [all …]
|
D | elfcmp.c | 432 while (off1 < data1->d_size in main() 439 if (off2 >= data2->d_size) in main() 509 if (off2 < data2->d_size) in main() 523 || (data1->d_buf != NULL || data1->d_size == 0)); in main() 525 || (data2->d_buf != NULL || data1->d_size == 0)); in main() 527 if (unlikely (data1->d_size != data2->d_size in main() 529 && data1->d_size != 0 in main() 531 data1->d_size) != 0))) in main() 535 && data1->d_size == data2->d_size in main() 844 if (data1->d_size != (2 + nbucket + nchain) * sizeof hash1[0] \ in hash_content_equivalent()
|
/third_party/elfutils/libdw/ |
D | libdw_findcu.c | 72 size_t dbg1_size = dbg1_data->d_size; in __libdw_finddbg_cb() 76 size_t dbg2_size = dbg2_data->d_size; in __libdw_finddbg_cb() 143 if (unlikely (*offsetp > data->d_size)) in __libdw_intern_next_unit() 144 *offsetp = data->d_size; in __libdw_intern_next_unit() 269 + dbg->sectiondata[IDX_debug_info]->d_size)) in __libdw_findcu_addr() 277 + dbg->sectiondata[IDX_debug_types]->d_size)) in __libdw_findcu_addr() 299 Elf_Data fake_data = { .d_buf = addr, .d_size = 0 }; in __libdw_find_split_dbg_addr()
|
D | encoded-value.h | 63 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() 157 const unsigned char *endp = cache->data->d.d_buf + cache->data->d.d_size; in read_encoded_value() 220 if (unlikely (cache->data->d.d_size < ptrsize in read_encoded_value() 221 || *result > (cache->data->d.d_size - ptrsize))) in read_encoded_value()
|
D | dwarf_formstring.c | 150 if (cu->offset_size > dbg->sectiondata[IDX_debug_str_offsets]->d_size) in dwarf_formstring() 158 if (str_off > (dbg->sectiondata[IDX_debug_str_offsets]->d_size in dwarf_formstring() 162 size_t max_idx = (dbg->sectiondata[IDX_debug_str_offsets]->d_size in dwarf_formstring() 174 if (off > dbg->sectiondata[IDX_debug_str]->d_size) in dwarf_formstring()
|
D | dwarf_getpubnames.c | 52 unsigned char *endp = readp + dbg->sectiondata[IDX_debug_pubnames]->d_size; in get_offsets() 90 size_t max_size = dbg->sectiondata[IDX_debug_pubnames]->d_size; in get_offsets() 158 >= dbg->sectiondata[IDX_debug_pubnames]->d_size))) in dwarf_getpubnames() 188 = startp + dbg->sectiondata[IDX_debug_pubnames]->d_size; in dwarf_getpubnames()
|
D | dwarf_formaddr.c | 53 if (cu->address_size > dbg->sectiondata[IDX_debug_addr]->d_size) in __libdw_addrx() 60 if (addr_off > (dbg->sectiondata[IDX_debug_addr]->d_size in __libdw_addrx() 65 if (idx > (dbg->sectiondata[IDX_debug_addr]->d_size in __libdw_addrx()
|
D | dwarf_getabbrev.c | 47 if (offset >= dbg->sectiondata[IDX_debug_abbrev]->d_size) in __libdw_getabbrev() 77 + dbg->sectiondata[IDX_debug_abbrev]->d_size); in __libdw_getabbrev() 179 if (offset >= data->d_size - abbrev_offset) in dwarf_getabbrev()
|
/third_party/elfutils/tests/ |
D | addsections.c | 116 size_t new_shstrtab_size = (shstrtab_data->d_size in add_sections() 125 memcpy (new_shstrtab_buf, shstrtab_data->d_buf, shstrtab_data->d_size); in add_sections() 126 size_t extra_idx = shstrtab_data->d_size; in add_sections() 191 data->d_size = bufsz; in add_sections() 211 shdr->sh_size = data->d_size; in add_sections() 238 new_shstrtab_data->d_size = new_shstrtab_size; in add_sections()
|
D | elfputzdata.c | 105 if (d->d_size != orig_size) in main() 113 orig_buf = malloc (d->d_size); in main() 161 if (d->d_size != new_size) in main() 213 if (d->d_size != newer_size) in main()
|
D | fillfile.c | 55 data->d_size = size; in add_strtab_entry() 172 data->d_size = 5; in add_data_section() 188 if (data->d_size != 5 || memcmp (data->d_buf, buf, 5) != 0) in check_data() 191 for (size_t i = 0; i < data->d_size; i++) in check_data() 193 i < data->d_size - 1 ? "," : ""); in check_data() 315 if (data != NULL && data->d_buf != NULL && data->d_size == 0) in check_elf()
|
D | elfstrmerge.c | 181 size_t s = d->d_size; in new_data_buf() 184 void *b = malloc (d->d_size); in new_data_buf() 339 size_t symsnum = symd->d_size / elsize; in main() 366 if (newstrtabdata.d_size >= shdrstrshdr->sh_size + strtabshdr->sh_size) in main() 524 size_t syms = (data->d_size in main() 560 size_t words = data->d_size / sizeof (Elf32_Word); in main() 579 size_t words = data->d_size / sizeof (Elf32_Word); in main() 607 newshdr.sh_size = newdata->d_size; in main()
|
D | newdata.c | 59 data->d_size = len; in add_section_data() 211 if (d == NULL || i * len >= d->d_off + d->d_size) in check_section_data() 222 ", d_size: %zd)\n", i, d->d_off, d->d_size); in check_section_data() 329 if (data->d_size != DATA_LEN) in check_elf() 331 printf ("Unexpected Elf_Data: %zd", data->d_size); in check_elf()
|
/third_party/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()
|
/third_party/elfutils/libasm/ |
D | asm_end.c | 119 newdata->d_size = content->len; in binary_end() 168 data->d_size = gelf_fsize (ctx->out.elf, ELF_T_SYM, in binary_end() 170 symtab = malloc (data->d_size); in binary_end() 245 xndxdata->d_size = elf32_fsize (ELF_T_WORD, in binary_end() 248 xshndx = xndxdata->d_buf = calloc (1, xndxdata->d_size); in binary_end() 335 data->d_size = elf32_fsize (ELF_T_WORD, runp->nmembers + 1, in binary_end() 337 grpdata = data->d_buf = malloc (data->d_size); in binary_end()
|