Lines Matching defs:sym
349 GElf_Sym *sym = gelf_getsymshndx (data, shndxdata, i, &sym_mem, &shndx);
350 ELF_CHECK (sym != NULL, _("cannot get symbol table entry: %s"));
356 if (sym->st_shndx != SHN_XINDEX)
357 shndx = sym->st_shndx;
359 if (shndx != i || GELF_ST_TYPE (sym->st_info) != STT_SECTION)
362 sym->st_value = shdr->sh_addr;
363 if (sym->st_shndx != SHN_XINDEX)
365 ELF_CHECK (gelf_update_symshndx (newsymdata, shndxdata, i, sym, shndx),
580 GElf_Sym *sym = gelf_getsymshndx (old_symdata, shndxdata,
583 sym, shndx),
596 GElf_Sym sym =
604 &sym, shndx),
613 GElf_Sym *sym = gelf_getsymshndx (old_symdata, shndxdata,
616 i + added, sym, shndx),
766 GElf_Sym *sym = gelf_getsymshndx (symdata, shndxdata, i,
768 ELF_CHECK (sym != NULL, _("cannot get symbol table entry: %s"));
769 if (sym->st_shndx != SHN_XINDEX)
770 shndx = sym->st_shndx;
772 if (sym->st_name >= strdata->d_size)
778 s->name = strdata->d_buf + sym->st_name;
779 s->value = sym->st_value + bias;
780 s->size = sym->st_size;
782 s->info.info = sym->st_info;
783 s->info.other = sym->st_other;
1542 GElf_Sym *sym = gelf_getsymshndx (outdata, shndxdata,
1544 ELF_CHECK (sym != NULL,
1546 if (sym->st_shndx != SHN_XINDEX)
1547 shndx = sym->st_shndx;
1558 sym->st_shndx = shndx;
1562 sym->st_shndx = SHN_XINDEX;
1565 i, sym, shndx),
1693 GElf_Sym sym;
1694 memset (&sym, 0, sizeof sym);
1695 ELF_CHECK (gelf_update_symshndx (symdata, shndxdata, 0, &sym, SHN_UNDEF),
1704 sym.st_name = ebl_strtaboffset (s->strent);
1705 sym.st_value = s->value; /* Already biased to output address. */
1706 sym.st_size = s->size;
1707 sym.st_shndx = s->shndx; /* Already mapped to output index. */
1708 sym.st_info = s->info.info;
1709 sym.st_other = s->info.other;
1712 if (GELF_ST_BIND (sym.st_info) == STB_LOCAL)
1719 &sym, SHN_UNDEF),