Lines Matching refs:data
382 /* Get the extended section index table data for a symbol table section. */
483 The addend is contained in the original data at
604 /* Make sure we adjust the uncompressed debug data
881 /* Copy over section data. */
882 Elf_Data *data = NULL;
883 while ((data = elf_getdata (scn, data)) != NULL)
888 error (0, 0, "couldn't create new section data: %s",
892 *new_data = *data;
951 /* Update section headers when the data size has changed.
999 Elf_Data *data;
1216 /* Prepare section information data structure. */
1303 shdr_info[cnt].data = elf_getdata (shdr_info[cnt].scn, NULL);
1304 if (shdr_info[cnt].data == NULL
1305 || shdr_info[cnt].data->d_size < sizeof (Elf32_Word))
1309 Elf32_Word *grpref = (Elf32_Word *) shdr_info[cnt].data->d_buf;
1312 inner < shdr_info[cnt].data->d_size / sizeof (Elf32_Word);
1387 /* The section group data is already loaded. */
1388 elf_assert (shdr_info[idx].data != NULL
1389 && shdr_info[idx].data->d_buf != NULL
1390 && shdr_info[idx].data->d_size >= sizeof (Elf32_Word));
1395 bool is_comdat = (((Elf32_Word *) shdr_info[idx].data->d_buf)[0]
1442 grpref = (Elf32_Word *) shdr_info[cnt].data->d_buf;
1444 in < shdr_info[cnt].data->d_size / sizeof (Elf32_Word);
1469 /* Make sure the data is loaded. */
1470 if (shdr_info[cnt].data == NULL)
1472 shdr_info[cnt].data
1474 if (shdr_info[cnt].data == NULL)
1477 Elf_Data *symdata = shdr_info[cnt].data;
1482 && shdr_info[shdr_info[cnt].symtab_idx].data == NULL)
1486 shdr_info[shdr_info[cnt].symtab_idx].data
1489 if (shdr_info[shdr_info[cnt].symtab_idx].data == NULL)
1493 = shdr_info[shdr_info[cnt].symtab_idx].data;
1500 inner < shdr_info[cnt].data->d_size / elsize;
1530 it is a redundant data marker to a debug
1531 (data only) section. */
1590 file's .data pointer. Below, we'll copy the section
1607 if (shdr_info[i].data == NULL)
1608 shdr_info[i].data = elf_getdata (shdr_info[i].scn, NULL);
1609 if (shdr_info[i].data == NULL)
1612 shdr_info[i].debug_data = shdr_info[i].data;
1650 /* Get the data from the old file if necessary. */
1651 if (shdr_info[cnt].data == NULL)
1653 shdr_info[cnt].data = elf_getdata (shdr_info[cnt].scn, NULL);
1654 if (shdr_info[cnt].data == NULL)
1658 /* Set the data. This is done by copying from the old file. */
1663 /* Copy the structure. This data may be modified in place
1665 *debugdata = *shdr_info[cnt].data;
1671 /* Copy the original data before it gets modified. */
1795 shdr_info[cnt].data = elf_newdata (shdr_info[cnt].newscn);
1796 if (shdr_info[cnt].data == NULL)
1799 error_exit (0, _("cannot allocate section data: %s"),
1808 shdr_info[cnt].data->d_align = 4;
1809 shdr_info[cnt].shdr.sh_size = shdr_info[cnt].data->d_size
1811 debuglink_buf = xcalloc (1, shdr_info[cnt].data->d_size);
1812 shdr_info[cnt].data->d_buf = debuglink_buf;
1814 strcpy (shdr_info[cnt].data->d_buf, debug_basename);
1818 debuglink_crc_data = *shdr_info[cnt].data;
1899 elf_assert (shdr_info[cnt].data != NULL
1900 && shdr_info[cnt].data->d_buf != NULL);
1902 Elf32_Word *grpref = (Elf32_Word *) shdr_info[cnt].data->d_buf;
1906 inner < shdr_info[cnt].data->d_size / sizeof (Elf32_Word);
1919 /* Get the data from the old file if necessary. We already
1920 created the data for the section header string table. */
1923 if (shdr_info[cnt].data == NULL)
1925 shdr_info[cnt].data = elf_getdata (shdr_info[cnt].scn, NULL);
1926 if (shdr_info[cnt].data == NULL)
1930 /* Set the data. This is done by copying from the old file. */
1936 *newdata = *shdr_info[cnt].data;
1939 shdr_info[cnt].shdr.sh_size = shdr_info[cnt].data->d_size;
1962 >= shdr_info[cnt].data->d_size / elsize));
1977 >= shdr_info[cnt].data->d_size / elsize));
1981 = xcalloc (shdr_info[cnt].data->d_size / elsize,
1988 inner < shdr_info[cnt].data->d_size / elsize;
1994 GElf_Sym *sym = gelf_getsymshndx (shdr_info[cnt].data,
2007 && gelf_update_symshndx (shdr_info[cnt].data,
2056 gelf_update_symshndx (shdr_info[cnt].data,
2084 if (gelf_update_sym (shdr_info[cnt].data, destidx,
2095 data marker symbol to a debug section. */
2215 const Elf32_Word symidxn = (shdr_info[symtabidx].data->d_size
2265 /* The symbol table data. */
2271 /* The hash table data. */
2403 /* The symbol table data. */
2408 const Elf32_Word syms = (shdr_info[symtabidx].data->d_size / symz);
2410 /* The version symbol data. */
2445 const Elf32_Word symn = (shdr_info[symtabidx].data->d_size
2462 /* Now that we have done all adjustments to the data,
2510 /* Store it in the debuglink section data. */
2633 table indices. Or we might kept (original) data around to put
2642 /* Free data we allocated for the .gnu_debuglink section. */