Lines Matching refs:data
63 Elf_Data *data = elf_getdata(scn, NULL); in print_shdr() local
67 data, in print_shdr()
69 data->d_buf, data->d_off, data->d_size); in print_shdr()
176 Elf_Data *data = elf_newdata(scn); in create_elf_sections() local
177 FAILIF_LIBELF(NULL == data, elf_newdata); in create_elf_sections()
178 *data = *olddata; in create_elf_sections()
181 data->d_buf = MALLOC(data->d_size); in create_elf_sections()
182 memcpy(data->d_buf, olddata->d_buf, olddata->d_size); in create_elf_sections()
197 source->shdr_info[cnt].data = data; in create_elf_sections()
471 source->symtab.data = elf_getdata(scn, NULL); in do_init_source()
472 FAILIF_LIBELF(NULL == source->symtab.data, elf_getdata); in do_init_source()
486 source->strtab.data = elf_getdata(source->strtab.scn, NULL); in do_init_source()
487 FAILIF_LIBELF(NULL == source->strtab.data, elf_getdata); in do_init_source()
496 source->dynamic.data = elf_getdata(scn, NULL); in do_init_source()
497 FAILIF_LIBELF(NULL == source->dynamic.data, elf_getdata); in do_init_source()
504 source->hash.data = elf_getdata(scn, NULL); in do_init_source()
505 FAILIF_LIBELF(NULL == source->hash.data, elf_getdata); in do_init_source()
524 reloc->data = elf_getdata(scn, NULL); in do_init_source()
525 FAILIF_LIBELF(NULL == reloc->data, elf_getdata); in do_init_source()
530 source->bss.data = elf_getdata(scn, NULL); in do_init_source()
535 FAILIF_LIBELF(NULL == source->bss.data, elf_getdata) in do_init_source()
536 FAILIF(NULL != source->bss.data->d_buf, in do_init_source()
578 source->num_syms = source->symtab.data->d_size / symsize; in do_init_source()
827 dyn = gelf_getdyn (source->dynamic.data, in reinit_source()
873 lib->hash.data, in hash_lookup_global_or_weak_symbol()
874 lib->symtab.data, in hash_lookup_global_or_weak_symbol()
875 lib->strtab.data, in hash_lookup_global_or_weak_symbol()
883 GElf_Sym *lib_sym = gelf_getsymshndx(lib->symtab.data, in hash_lookup_global_or_weak_symbol()
998 sym = gelf_getsymshndx(source->symtab.data, in do_prelink()
1006 ((char *)source->strtab.data->d_buf) + in do_prelink()
1178 GElf_Shdr shdr_mem; Elf_Scn *scn; Elf_Data *data; in do_prelink() local
1179 find_section(source, rel->r_offset, &scn, &shdr_mem, &data); in do_prelink()
1181 (unsigned*)(((char *)data->d_buf) + in do_prelink()
1204 ASSERT(data->d_buf != NULL); in do_prelink()
1205 ASSERT(data->d_size >= rel->r_offset - shdr_mem.sh_addr); in do_prelink()
1235 ASSERT(data->d_buf != NULL); in do_prelink()
1236 ASSERT(data->d_size >= rel->r_offset - shdr_mem.sh_addr); in do_prelink()
1326 if (data->d_buf == NULL) { in do_prelink()
1352 ASSERT(data->d_buf != NULL); in do_prelink()
1353 ASSERT(data->d_size >= rel->r_offset - in do_prelink()
1446 size_t d_size = reloc_scn->data->d_size; in prelink()
1448 reloc_scn->data->d_size != reloc_scn->info->old_shdr.sh_size) in prelink()
1456 reloc_scn->data->d_size = reloc_scn->info->old_shdr.sh_size; in prelink()
1461 reloc_scn->data, reloc_scn->shdr.sh_entsize, in prelink()
1468 if (reloc_scn->data->d_size != d_size) in prelink()
1474 reloc_scn->data->d_size = d_size; in prelink()
1495 Elf_Data *data = elf_getdata(info->scn, NULL); in prelink() local
1496 ASSERT(data->d_size == 0); in prelink()
1497 data->d_size = info->old_shdr.sh_size; in prelink()
1502 data->d_size, in prelink()
1507 data, info->old_shdr.sh_entsize, in prelink()
1514 data->d_size = 0; in prelink()
1567 dyn_entry = gelf_getdyn(source->dynamic.data, in adjust_dynamic_segment_entry_size()
1595 FAILIF_LIBELF(!gelf_update_dyn(source->dynamic.data, in adjust_dynamic_segment_entry_size()
1642 dyn_entry = gelf_getdyn(source->dynamic.data, in adjust_dynamic_segment_entries()
1673 gelf_update_dyn(source->dynamic.data, in adjust_dynamic_segment_entries()
1751 gelf_update_rel(next->data, in adjust_dynamic_segment_for()
1815 source->shdr_info[elf_ndxscn(next->scn)].data == NULL); in adjust_dynamic_segment_for()
2017 Elf_Data *data = in drop_sections() local
2019 FAILIF_LIBELF(NULL == data, elf_newdata); in drop_sections()
2020 *data = *olddata; in drop_sections()
2023 data->d_buf = MALLOC(data->d_size); in drop_sections()
2024 memcpy(data->d_buf, olddata->d_buf, olddata->d_size); in drop_sections()
2027 source->shdr_info[cnt].data = data; in drop_sections()
2029 if (data->d_size != in drop_sections()
2033 data->d_size, in drop_sections()
2035 data->d_size = in drop_sections()
2046 data->d_size); in drop_sections()
2186 ASSERT(source->dynamic.shdr.sh_size == source->dynamic.data->d_size); in process_file()
2192 dyn = gelf_getdyn (source->dynamic.data, in process_file()
2373 Elf_Data *data = elf_getdata( in process_file() local
2376 if (data->d_size != in process_file()
2381 data->d_size, in process_file()
2383 data->d_size = source->shdr_info[cnt].shdr.sh_size; in process_file()