Lines Matching refs:data

171 	return strstr(elf_sec__name(shdr, secstrs), "data") != NULL;
517 /* Get data for sorting: the offset and symbol index */
669 * have the PLT data stripped out (shdr_rel_plt.sh_type == SHT_NOBITS).
852 * Align offset to 4 bytes as needed for note name and descriptor data.
861 Elf_Data *data;
904 data = elf_getdata(sec, NULL);
905 if (data == NULL)
908 ptr = data->d_buf;
909 while (ptr < (data->d_buf + data->d_size)) {
939 size_t size = sizeof(bid->data);
955 memcpy(bid->data, abfd->build_id->data, abfd->build_id->size);
956 memset(bid->data + abfd->build_id->size, 0, size - abfd->build_id->size);
968 size_t size = sizeof(bid->data);
985 err = elf_read_build_id(elf, bid->data, size);
1033 size_t size = sizeof(bid->data);
1056 if (read(fd, bid->data, sz) == (ssize_t)sz) {
1057 memset(bid->data + sz, 0, size - sz);
1126 Elf_Data *data;
1154 data = elf_getdata(sec, NULL);
1155 if (data == NULL)
1159 strncpy(debuglink, data->d_buf, size);
1193 pr_err("unrecognized DSO data encoding %d\n", eidata);
1617 * When loading symbols in a data mapping, ABS symbols (which
1789 static int elf_read_maps(Elf *elf, bool exe, mapfn_t mapfn, void *data)
1814 err = mapfn(phdr.p_vaddr, sz, phdr.p_offset, data);
1821 int file__read_maps(int fd, bool exe, mapfn_t mapfn, void *data,
1834 err = elf_read_maps(elf, exe, mapfn, data);
2234 static int kcore_copy__read_map(u64 start, u64 len, u64 pgoff, void *data)
2236 struct kcore_copy_info *kci = data;
2480 * the data is copied adjacently whereas the original kcore has gaps. Finally,
2644 * populate_sdt_note : Parse raw data and identify SDT note
2646 * @data: raw data of a section with description offset applied
2651 * Responsible for parsing the @data in section .note.stapsdt in @elf and
2654 static int populate_sdt_note(Elf **elf, const char *data, size_t len,
2674 .d_buf = (void *) data, .d_type = ELF_T_ADDR,
2698 provider = data + dst.d_size;
2700 name = (const char *)memchr(provider, '\0', data + len - provider);
2715 args = memchr(name, '\0', data + len - name);
2723 if (args == NULL || data + len - args < 2 ||
2790 Elf_Data *data;
2818 data = elf_getdata(scn, NULL);
2821 for (offset = 0; (next = gelf_getnote(data, offset, &nhdr, &name_off,
2824 !memcmp(data->d_buf + name_off, SDT_NOTE_NAME,
2830 ret = populate_sdt_note(&elf, ((data->d_buf) + desc_off),