Lines Matching refs:data
181 return strstr(elf_sec__name(shdr, secstrs), "data") != NULL;
308 * have the PLT data stripped out (shdr_rel_plt.sh_type == SHT_NOBITS).
479 * Align offset to 4 bytes as needed for note name and descriptor data.
488 Elf_Data *data;
531 data = elf_getdata(sec, NULL);
532 if (data == NULL)
535 ptr = data->d_buf;
536 while (ptr < (data->d_buf + data->d_size)) {
566 size_t size = sizeof(bid->data);
582 memcpy(bid->data, abfd->build_id->data, abfd->build_id->size);
583 memset(bid->data + abfd->build_id->size, 0, size - abfd->build_id->size);
595 size_t size = sizeof(bid->data);
612 err = elf_read_build_id(elf, bid->data, size);
627 size_t size = sizeof(bid->data);
650 if (read(fd, bid->data, sz) == (ssize_t)sz) {
651 memset(bid->data + sz, 0, size - sz);
720 Elf_Data *data;
748 data = elf_getdata(sec, NULL);
749 if (data == NULL)
753 strncpy(debuglink, data->d_buf, size);
787 pr_err("unrecognized DSO data encoding %d\n", eidata);
1213 * When loading symbols in a data mapping, ABS symbols (which
1313 static int elf_read_maps(Elf *elf, bool exe, mapfn_t mapfn, void *data)
1338 err = mapfn(phdr.p_vaddr, sz, phdr.p_offset, data);
1345 int file__read_maps(int fd, bool exe, mapfn_t mapfn, void *data,
1358 err = elf_read_maps(elf, exe, mapfn, data);
1758 static int kcore_copy__read_map(u64 start, u64 len, u64 pgoff, void *data)
1760 struct kcore_copy_info *kci = data;
2004 * the data is copied adjacently whereas the original kcore has gaps. Finally,
2168 * populate_sdt_note : Parse raw data and identify SDT note
2170 * @data: raw data of a section with description offset applied
2175 * Responsible for parsing the @data in section .note.stapsdt in @elf and
2178 static int populate_sdt_note(Elf **elf, const char *data, size_t len,
2198 .d_buf = (void *) data, .d_type = ELF_T_ADDR,
2222 provider = data + dst.d_size;
2224 name = (const char *)memchr(provider, '\0', data + len - provider);
2239 args = memchr(name, '\0', data + len - name);
2247 if (args == NULL || data + len - args < 2 ||
2314 Elf_Data *data;
2342 data = elf_getdata(scn, NULL);
2345 for (offset = 0; (next = gelf_getnote(data, offset, &nhdr, &name_off,
2348 !memcmp(data->d_buf + name_off, SDT_NOTE_NAME,
2354 ret = populate_sdt_note(&elf, ((data->d_buf) + desc_off),