Lines Matching defs:data
361 ERROR (_("e_ident[%d] == %d is no known data encoding\n"),
459 uncompressed data. */
574 Elf_Data *data = elf_getdata (scn, NULL);
575 if (data == NULL || data->d_buf == NULL
576 || data->d_size < sizeof (Elf32_Word))
580 Elf32_Word *grpdata = (Elf32_Word *) data->d_buf;
581 for (size_t inner = 1; inner < data->d_size / sizeof (Elf32_Word);
606 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL);
607 if (data == NULL)
609 ERROR (_("section [%2d] '%s': cannot get section data\n"),
668 GElf_Sym *sym = gelf_getsymshndx (data, xndxdata, 0, &sym_mem, &xndx);
700 sym = gelf_getsymshndx (data, xndxdata, cnt, &sym_mem, &xndx);
1105 section [%2d] '%s': cannot get section data.\n"),
1483 section [%2d] '%s': relocations are against loaded and unloaded data\n"),
1494 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL);
1495 if (data == NULL)
1497 ERROR (_("section [%2d] '%s': cannot get section data\n"),
1519 GElf_Rela *rela = gelf_getrela (data, cnt, &rela_mem);
1545 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL);
1546 if (data == NULL)
1548 ERROR (_("section [%2d] '%s': cannot get section data\n"),
1570 GElf_Rel *rel = gelf_getrel (data, cnt, &rel_mem);
1600 Elf_Data *data;
1651 data = elf_getdata (elf_getscn (ebl->elf, idx), NULL);
1652 if (data == NULL)
1654 ERROR (_("section [%2d] '%s': cannot get section data\n"),
1687 GElf_Dyn *dyn = gelf_getdyn (data, cnt, &dyn_mem);
1952 ERROR (_("cannot get data for symbol section\n"));
1987 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL);
1988 if (data == NULL || data->d_buf == NULL)
1990 ERROR (_("section [%2d] '%s': cannot get section data\n"),
1995 if (data->d_size < sizeof (Elf32_Word)
1996 || *((Elf32_Word *) data->d_buf) != 0)
1999 for (size_t cnt = 1; cnt < data->d_size / sizeof (Elf32_Word); ++cnt)
2001 Elf32_Word xndx = ((Elf32_Word *) data->d_buf)[cnt];
2009 ERROR (_("cannot get data for symbol %zu\n"), cnt);
2023 check_sysv_hash (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, int idx,
2026 Elf32_Word nbucket = ((Elf32_Word *) data->d_buf)[0];
2027 Elf32_Word nchain = ((Elf32_Word *) data->d_buf)[1];
2051 Elf32_Word *buf = (Elf32_Word *) data->d_buf;
2052 Elf32_Word *end = (Elf32_Word *) ((char *) data->d_buf + shdr->sh_size);
2077 check_sysv_hash64 (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, int idx,
2080 Elf64_Xword nbucket = ((Elf64_Xword *) data->d_buf)[0];
2081 Elf64_Xword nchain = ((Elf64_Xword *) data->d_buf)[1];
2108 Elf64_Xword *buf = (Elf64_Xword *) data->d_buf;
2109 Elf64_Xword *end = (Elf64_Xword *) ((char *) data->d_buf + shdr->sh_size);
2134 check_gnu_hash (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, int idx,
2137 if (data->d_size < 4 * sizeof (Elf32_Word))
2140 section [%2d] '%s': not enough data\n"),
2145 Elf32_Word nbuckets = ((Elf32_Word *) data->d_buf)[0];
2146 Elf32_Word symbias = ((Elf32_Word *) data->d_buf)[1];
2147 Elf32_Word bitmask_words = ((Elf32_Word *) data->d_buf)[2];
2160 Elf32_Word shift = ((Elf32_Word *) data->d_buf)[3];
2165 if (used_buf > data->d_size)
2188 /* We need the symbol section data. */
2195 } bitmask = { .p32 = &((Elf32_Word *) data->d_buf)[4] },
2203 Elf32_Word symidx = ((Elf32_Word *) data->d_buf)[cnt];
2218 Elf32_Word chainhash = ((Elf32_Word *) data->d_buf)[4
2313 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL);
2314 if (data == NULL || data->d_buf == NULL)
2316 ERROR (_("section [%2d] '%s': cannot get section data\n"),
2359 check_sysv_hash64 (ebl, shdr, data, idx, symshdr);
2361 check_sysv_hash (ebl, shdr, data, idx, symshdr);
2365 check_gnu_hash (ebl, shdr, data, idx, symshdr);
2423 hash section [%2zu] '%s' does not contain enough data\n"),
2455 hash section [%2zu] '%s' uses too much data\n"),
2488 hash section [%2zu] '%s' does not contain enough data\n"),
2499 hash section [%2zu] '%s' uses too much data\n"),
2523 hash section [%2zu] '%s' does not contain enough data\n"),
2536 hash section [%2zu] '%s' uses too much data\n"),
2678 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL);
2679 if (data == NULL || data->d_buf == NULL)
2680 ERROR (_("section [%2d] '%s': cannot get data: %s\n"),
2688 if (data->d_size % elsize != 0)
2693 if (data->d_size < elsize)
2702 if (data->d_size < 2 * elsize)
2706 else if (data->d_size < 3 * elsize)
2713 val = *((Elf32_Word *) data->d_buf);
2715 memcpy (&val, data->d_buf, elsize);
2721 for (cnt = elsize; cnt + elsize <= data->d_size; cnt += elsize)
2724 val = *((Elf32_Word *) ((char *) data->d_buf + cnt));
2726 memcpy (&val, (char *) data->d_buf + cnt, elsize);
2850 Elf_Data *data = elf_getdata (scn, NULL);
2851 if (data == NULL || shdr->sh_entsize == 0)
2858 GElf_Rel *rel = gelf_getrel (data, i, &rel_mem);
2870 GElf_Rela *rela = gelf_getrela (data, i, &rela_mem);
2939 Elf_Data *data = elf_getdata (scn, NULL);
2940 if (data == NULL)
2942 ERROR (_("section [%2d] '%s': cannot get section data\n"),
2981 GElf_Versym *versym = gelf_getversym (data, cnt, &versym_mem);
2985 section [%2d] '%s': symbol %d: cannot read version data\n"),
3064 Elf_Data *data = elf_getdata (scn, NULL);
3066 && data != NULL && shdr->sh_entsize != 0)
3070 GElf_Dyn *dyn = gelf_getdyn (data, j, &dyn_mem);
3102 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL);
3103 if (data == NULL)
3105 ERROR (_("section [%2d] '%s': cannot get section data\n"),
3114 /* Get the data at the next offset. */
3116 GElf_Verneed *need = gelf_getverneed (data, offset, &needmem);
3131 section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"),
3155 GElf_Vernaux *aux = gelf_getvernaux (data, auxoffset, &auxmem);
3249 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL);
3250 if (data == NULL)
3253 ERROR (_("section [%2d] '%s': cannot get section data\n"),
3275 /* Get the data at the next offset. */
3277 GElf_Verdef *def = gelf_getverdef (data, offset, &defmem);
3307 section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"),
3314 GElf_Verdaux *aux = gelf_getverdaux (data, auxoffset, &auxmem);
3349 aux = gelf_getverdaux (data, auxoffset, &auxmem);
3357 section [%2d] '%s': entry %d has invalid name reference in auxiliary data\n"),
3374 section [%2d] '%s': entry %d has wrong next field in auxiliary data\n"),
3431 buffer_pos (Elf_Data *data, const unsigned char *p)
3433 return p - (const unsigned char *) data->d_buf;
3437 buffer_left (Elf_Data *data, const unsigned char *p)
3439 return (const unsigned char *) data->d_buf + data->d_size - p;
3452 Elf_Data *data = elf_rawdata (elf_getscn (ebl->elf, idx), NULL);
3453 if (data == NULL || data->d_size == 0 || data->d_buf == NULL)
3455 ERROR (_("section [%2d] '%s': cannot get section data\n"),
3460 const unsigned char *p = data->d_buf;
3468 while (buffer_left (data, p) >= 4)
3476 idx, section_name (ebl, idx), buffer_pos (data, p));
3481 if (len > buffer_left (data, p))
3485 idx, section_name (ebl, idx), buffer_pos (data, p));
3497 idx, section_name (ebl, idx), buffer_pos (data, p));
3514 idx, section_name (ebl, idx), buffer_pos (data, chunk));
3523 idx, section_name (ebl, idx), buffer_pos (data, q));
3532 idx, section_name (ebl, idx), buffer_pos (data, q));
3547 idx, section_name (ebl, idx), buffer_pos (data, q));
3558 idx, section_name (ebl, idx), buffer_pos (data, chunk), subsection_tag);
3576 idx, section_name (ebl, idx), buffer_pos (data, chunk));
3587 idx, section_name (ebl, idx), buffer_pos (data, chunk));
3600 idx, section_name (ebl, idx), buffer_pos (data, chunk), tag);
3604 idx, section_name (ebl, idx), buffer_pos (data, chunk),
3614 idx, section_name (ebl, idx), buffer_pos (data, p), name);
3617 if (buffer_left (data, p) != 0)
3620 idx, section_name (ebl, idx), buffer_pos (data, p));
3639 { ".data", 6, SHT_PROGBITS, exact, SHF_ALLOC | SHF_WRITE, 0 },
3964 section [%2zu] '%s': thread-local data sections address not zero\n"),
4093 where the data is all zeros. Check those
4306 Elf_Data *data, int shndx, int phndx, GElf_Off start)
4313 while (offset < data->d_size
4314 && (offset = gelf_getnote (data, offset,
4362 && strcmp (data->d_buf + name_offset, ELF_NOTE_GNU) == 0)
4375 /* GNU Build Attributes store most data in the owner
4379 && strncmp (data->d_buf + name_offset,
4388 && strcmp (data->d_buf + name_offset, ELF_NOTE_FDO) == 0)
4396 && !memcmp (data->d_buf + name_offset, "Linux", sizeof "Linux"))
4406 (char *) data->d_buf + name_offset, offset);
4413 (char *) data->d_buf + name_offset, offset);
4439 Elf_Data *data = elf_getdata_rawchunk (ebl->elf,
4443 if (data != NULL && data->d_buf != NULL)
4444 notes_size = check_note_data (ebl, ehdr, data, 0, cnt, phdr->p_offset);
4461 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL);
4462 if (data == NULL || data->d_buf == NULL)
4464 ERROR (_("section [%2d] '%s': cannot get section data\n"),
4475 GElf_Off notes_size = check_note_data (ebl, ehdr, data, idx, 0, 0);
4820 /* Check the exception handling data, if it exists. */