Lines Matching defs:sym
392 GElf_Sym *sym = gelf_getsymshndx (data, shndxdata, i, &sym_mem, &shndx);
393 ELF_CHECK (sym != NULL, _("cannot get symbol table entry: %s"));
399 if (sym->st_shndx != SHN_XINDEX)
400 shndx = sym->st_shndx;
402 if (shndx != i || GELF_ST_TYPE (sym->st_info) != STT_SECTION)
405 sym->st_value = shdr->sh_addr;
406 if (sym->st_shndx != SHN_XINDEX)
408 ELF_CHECK (gelf_update_symshndx (newsymdata, shndxdata, i, sym, shndx),
656 GElf_Sym *sym = gelf_getsymshndx (old_symdata, shndxdata,
658 ELF_CHECK (sym != NULL, _("cannot get symbol table entry: %s"));
660 sym, shndx),
673 GElf_Sym sym =
681 &sym, shndx),
690 GElf_Sym *sym = gelf_getsymshndx (old_symdata, shndxdata,
692 ELF_CHECK (sym != NULL, _("cannot get symbol table entry: %s"));
694 i + added, sym, shndx),
859 GElf_Sym *sym = gelf_getsymshndx (symdata, shndxdata, i,
861 ELF_CHECK (sym != NULL, _("cannot get symbol table entry: %s"));
862 if (sym->st_shndx != SHN_XINDEX)
863 shndx = sym->st_shndx;
865 if (sym->st_name >= strdata->d_size
866 || memrchr (strdata->d_buf + sym->st_name, '\0',
867 strdata->d_size - sym->st_name) == NULL)
873 s->name = strdata->d_buf + sym->st_name;
874 s->value = sym->st_value + bias;
875 s->size = sym->st_size;
877 s->info.info = sym->st_info;
878 s->info.other = sym->st_other;
1057 GElf_Sym *sym = gelf_getsym (symdata, shdr->sh_info, &sym_mem);
1058 if (sym == NULL)
1062 const char *sig = elf_strptr (elf, symshdr->sh_link, sym->st_name);
1748 GElf_Sym *sym = gelf_getsymshndx (outdata, shndxdata,
1750 ELF_CHECK (sym != NULL,
1752 if (sym->st_shndx != SHN_XINDEX)
1753 shndx = sym->st_shndx;
1764 sym->st_shndx = shndx;
1768 sym->st_shndx = SHN_XINDEX;
1771 i, sym, shndx),
1964 GElf_Sym sym;
1965 memset (&sym, 0, sizeof sym);
1966 ELF_CHECK (gelf_update_symshndx (symdata, shndxdata, 0, &sym, SHN_UNDEF),
1975 sym.st_name = dwelf_strent_off (s->strent);
1976 sym.st_value = s->value; /* Already biased to output address. */
1977 sym.st_size = s->size;
1978 sym.st_shndx = s->shndx; /* Already mapped to output index. */
1979 sym.st_info = s->info.info;
1980 sym.st_other = s->info.other;
1983 if (GELF_ST_BIND (sym.st_info) == STB_LOCAL)
1990 &sym, SHN_UNDEF),