Home
last modified time | relevance | path

Searched refs:d_size (Results 1 – 25 of 61) sorted by relevance

123

/external/elfutils/libelf/
Delf32_xlatetom.c50 if (src->d_size % recsize != 0)
57 if (src->d_size > dest->d_size)
86 memmove (dest->d_buf, src->d_buf, src->d_size);
102 (*fctp) (dest->d_buf, src->d_buf, src->d_size, 0);
108 dest->d_size = src->d_size;
Delf32_xlatetof.c49 if (src->d_size % recsize != 0)
56 if (src->d_size > dest->d_size)
85 memmove (dest->d_buf, src->d_buf, src->d_size);
101 (*fctp) (dest->d_buf, src->d_buf, src->d_size, 1);
107 dest->d_size = src->d_size;
Dgelf_getsymshndx.c60 if (unlikely ((ndx + 1) * sizeof (Elf32_Word) > shndxdata_scn->d.d_size))
80 if (unlikely ((ndx + 1) * sizeof (Elf32_Sym) > symdata->d_size))
109 if (unlikely ((ndx + 1) * sizeof (GElf_Sym) > symdata->d_size))
Dgelf_update_symshndx.c69 if (unlikely ((ndx + 1) * sizeof (Elf32_Word) > shndxdata_scn->d.d_size))
98 if (unlikely ((ndx + 1) * sizeof (Elf32_Sym) > symdata_scn->d.d_size))
121 if (unlikely ((ndx + 1) * sizeof (Elf64_Sym) > symdata_scn->d.d_size))
Delf32_updatefile.c250 dl->data.d.d_size, 1); in __elfw2()
252 last_position += dl->data.d.d_size; in __elfw2()
257 dl->data.d.d_size); in __elfw2()
260 last_position += dl->data.d.d_size; in __elfw2()
546 if (dl->data.d.d_size > MAX_TMPBUF) in __elfw2()
548 buf = malloc (dl->data.d.d_size); in __elfw2()
557 (*fctp) (buf, dl->data.d.d_buf, dl->data.d.d_size, 1); in __elfw2()
561 dl->data.d.d_size, in __elfw2()
563 != dl->data.d.d_size)) in __elfw2()
576 last_offset += dl->data.d.d_size; in __elfw2()
Dgelf_getdyn.c63 if (unlikely ((ndx + 1) * sizeof (Elf32_Dyn) > data_scn->d.d_size))
84 if (unlikely ((ndx + 1) * sizeof (GElf_Dyn) > data_scn->d.d_size))
Dgelf_getrel.c63 if (unlikely ((ndx + 1) * sizeof (Elf32_Rel) > data_scn->d.d_size))
83 if (unlikely ((ndx + 1) * sizeof (Elf64_Rel) > data_scn->d.d_size))
Dgelf_getsym.c60 if (unlikely ((ndx + 1) * sizeof (Elf32_Sym) > data->d_size))
89 if (unlikely ((ndx + 1) * sizeof (GElf_Sym) > data->d_size))
Dgelf_update_dyn.c72 if (unlikely ((ndx + 1) * sizeof (Elf32_Dyn) > data_scn->d.d_size))
86 if (unlikely ((ndx + 1) * sizeof (Elf64_Dyn) > data_scn->d.d_size))
Dgelf_update_sym.c72 if (unlikely ((ndx + 1) * sizeof (Elf32_Sym) > data_scn->d.d_size))
95 if (unlikely ((ndx + 1) * sizeof (Elf64_Sym) > data_scn->d.d_size))
Dgelf_update_rel.c69 if (unlikely ((ndx + 1) * sizeof (Elf32_Rel) > data_scn->d.d_size)) in gelf_update_rel()
84 if (unlikely ((ndx + 1) * sizeof (Elf64_Rel) > data_scn->d.d_size)) in gelf_update_rel()
Dgelf_getrela.c63 if (unlikely ((ndx + 1) * sizeof (Elf32_Rela) > data_scn->d.d_size))
84 if (unlikely ((ndx + 1) * sizeof (Elf64_Rela) > data_scn->d.d_size))
Dgelf_update_rela.c71 if (unlikely ((ndx + 1) * sizeof (Elf32_Rela) > data_scn->d.d_size)) in gelf_update_rela()
87 if (unlikely ((ndx + 1) * sizeof (Elf64_Rela) > data_scn->d.d_size)) in gelf_update_rela()
Delf_getdata.c167 scn->data_list.data.d.d_size = size; in convert_data()
294 scn->rawdata.d.d_size = size; in __libelf_set_rawdata()
426 if (scn->rawdata.d.d_buf != NULL && scn->rawdata.d.d_size > 0)
434 scn->rawdata.d.d_size,
/external/elfcopy/
Dhash.c11 hash_data->d_size = 2; in setup_hash()
12 hash_data->d_size += nbuckets; in setup_hash()
13 hash_data->d_size += nchains; in setup_hash()
14 hash_data->d_buf = CALLOC(hash_data->d_size, sizeof(Elf32_Word)); in setup_hash()
15 hash_data->d_size *= sizeof(Elf32_Word); in setup_hash()
Delfcopy.c209 INFO("\tNew size will be %d.\n", (*shstrtab_data)->d_size); in adjust_elf()
210 shdr_info[shdridx].shdr.sh_size = (*shstrtab_data)->d_size; in adjust_elf()
216 shdr_info[shdridx].data->d_buf = MALLOC(shdr_info[shdridx].data->d_size); in adjust_elf()
218 … memcpy(shdr_info[shdridx].data->d_buf, (*shstrtab_data)->d_buf, (*shstrtab_data)->d_size); in adjust_elf()
297 shdr_info[cnt].shdr.sh_size = shdr_info[cnt].data->d_size; in adjust_elf()
357 num_symbols != shdr_info[cnt].data->d_size / elsize, in adjust_elf()
361 shdr_info[cnt].data->d_size / elsize, in adjust_elf()
366 (shdr_info[cnt].data->d_size/elsize) * in adjust_elf()
375 (Elf32_Word *)CALLOC(shdr_info[cnt].data->d_size / elsize, in adjust_elf()
386 unsigned long num_symbols = shdr_info[cnt].data->d_size / elsize; in adjust_elf()
[all …]
/external/elfutils/src/
Dstrip.c607 inner < shdr_info[cnt].data->d_size / sizeof (Elf32_Word); in handle_elf()
752 inner < shdr_info[cnt].data->d_size / elsize; in handle_elf()
1000 shdr_info[cnt].shdr.sh_size = shdr_info[cnt].data->d_size in handle_elf()
1002 shdr_info[cnt].data->d_buf = xcalloc (1, shdr_info[cnt].data->d_size); in handle_elf()
1056 shdr_info[cnt].shdr.sh_size = shstrtab_data->d_size; in handle_elf()
1083 inner < shdr_info[cnt].data->d_size / sizeof (Elf32_Word); in handle_elf()
1113 shdr_info[cnt].shdr.sh_size = shdr_info[cnt].data->d_size; in handle_elf()
1134 assert ((versiondata->d_size / sizeof (Elf32_Word)) in handle_elf()
1135 >= shdr_info[cnt].data->d_size / elsize); in handle_elf()
1147 assert ((versiondata->d_size / sizeof (GElf_Versym)) in handle_elf()
[all …]
Di386_ld.c203 data->d_size = (1 + statep->nplt) * PLT_ENTRY_SIZE; in elf_i386_initialize_plt()
204 data->d_buf = xcalloc (1, data->d_size); in elf_i386_initialize_plt()
223 data->d_size = statep->nplt * sizeof (Elf32_Rel); in elf_i386_initialize_pltrel()
224 data->d_buf = xcalloc (1, data->d_size); in elf_i386_initialize_pltrel()
250 data->d_size = (3 + statep->ngot + statep->nplt) * sizeof (Elf32_Addr); in elf_i386_initialize_got()
251 data->d_buf = xcalloc (1, data->d_size); in elf_i386_initialize_got()
376 assert ((4 + cnt) * sizeof (Elf32_Word) <= data->d_size); in elf_i386_finalize_plt()
400 assert (data->d_size >= PLT_ENTRY_SIZE); in elf_i386_finalize_plt()
427 assert (data->d_size >= (2 + cnt) * PLT_ENTRY_SIZE); in elf_i386_finalize_plt()
463 assert ((1 + cnt) * sizeof (Elf32_Rel) <= data->d_size); in elf_i386_finalize_plt()
Dldgeneric.c765 cnt = data->d_size / sizeof (Elf32_Word); in find_section_group()
817 cnt = data->d_size / sizeof (Elf32_Word); in mark_section_group()
3115 data->d_size = (groups->nscns + 1) * sizeof (Elf32_Word); in ld_generic_create_sections()
3116 data->d_buf = grpdata = (Elf32_Word *) xmalloc (data->d_size); in ld_generic_create_sections()
3500 sym->st_size = data->d_size; in fillin_special_symbol()
3708 symdata->d_size = xelf_fsize (ld_state.outelf, ELF_T_SYM, in ld_generic_create_outfile()
3729 xndxdata->d_size = xelf_fsize (ld_state.outelf, ELF_T_WORD, in ld_generic_create_outfile()
3732 xndxdata->d_buf = memset (xmalloc (xndxdata->d_size), '\0', in ld_generic_create_outfile()
3759 symdata->d_size = xelf_fsize (ld_state.outelf, ELF_T_SYM, in ld_generic_create_outfile()
3764 symdata->d_buf = memset (xmalloc (symdata->d_size), '\0', in ld_generic_create_outfile()
[all …]
/external/elfutils/libdw/
Ddwarf_getpubnames.c36 unsigned char *endp = readp + dbg->sectiondata[IDX_debug_pubnames]->d_size; in get_offsets()
69 if (mem[cnt].set_start >= dbg->sectiondata[IDX_debug_pubnames]->d_size) in get_offsets()
92 < dbg->sectiondata[IDX_debug_info]->d_size); in get_offsets()
132 || offset >= dbg->sectiondata[IDX_debug_pubnames]->d_size))
Ddwarf_getstring.c33 || offset >= dbg->sectiondata[IDX_debug_str]->d_size)
43 dbg->sectiondata[IDX_debug_str]->d_size - offset);
Ddwarf_nextcu.c42 || unlikely (off + 4 >= dwarf->sectiondata[IDX_debug_info]->d_size))
88 >= dwarf->sectiondata[IDX_debug_info]->d_size))
/external/elfutils/libasm/
Dasm_end.c102 newdata->d_size = content->len; in binary_end()
156 data->d_size = gelf_fsize (ctx->out.elf, ELF_T_SYM, in binary_end()
158 symtab = malloc (data->d_size); in binary_end()
232 xndxdata->d_size = elf32_fsize (ELF_T_WORD, in binary_end()
235 xshndx = xndxdata->d_buf = calloc (1, xndxdata->d_size); in binary_end()
321 data->d_size = elf32_fsize (ELF_T_WORD, runp->nmembers + 1, in binary_end()
323 grpdata = data->d_buf = malloc (data->d_size); in binary_end()
/external/elfutils/tests/
Dupdate4.c144 data->d_size = 5; in main()
180 data->d_size = 5; in main()
216 data->d_size = 5; in main()
253 data->d_size = 100; in main()
Dsectiondump.c139 size_t size = data->d_size; in print_bytes()
162 size_t nsym = data->d_size / (class == ELFCLASS32 in print_symtab()

123