Lines Matching defs:sym

668   GElf_Sym *sym = gelf_getsymshndx (data, xndxdata, 0, &sym_mem, &xndx);
669 if (sym == NULL)
674 if (sym->st_name != 0)
677 if (sym->st_value != 0)
680 if (sym->st_size != 0)
683 if (sym->st_info != 0)
686 if (sym->st_other != 0)
689 if (sym->st_shndx != 0)
700 sym = gelf_getsymshndx (data, xndxdata, cnt, &sym_mem, &xndx);
701 if (sym == NULL)
711 else if (sym->st_name >= strshdr->sh_size)
717 name = elf_strptr (ebl->elf, shdr->sh_link, sym->st_name);
722 if (sym->st_shndx == SHN_XINDEX)
738 else if ((sym->st_shndx >= SHN_LORESERVE
739 // && sym->st_shndx <= SHN_HIRESERVE always true
740 && sym->st_shndx != SHN_ABS
741 && sym->st_shndx != SHN_COMMON)
742 || (sym->st_shndx >= shnum
743 && (sym->st_shndx < SHN_LORESERVE
744 /* || sym->st_shndx > SHN_HIRESERVE always false */)))
749 xndx = sym->st_shndx;
751 if (GELF_ST_TYPE (sym->st_info) >= STT_NUM
752 && !ebl_symbol_type_name (ebl, GELF_ST_TYPE (sym->st_info), NULL, 0))
756 if (GELF_ST_BIND (sym->st_info) >= STB_NUM
757 && !ebl_symbol_binding_name (ebl, GELF_ST_BIND (sym->st_info), NULL,
762 if (GELF_ST_BIND (sym->st_info) == STB_GNU_UNIQUE
763 && GELF_ST_TYPE (sym->st_info) != STT_OBJECT)
779 if (GELF_R_TYPE (sym->st_info) == STT_FUNC)
795 if (GELF_ST_TYPE (sym->st_info) == STT_FUNC
796 || (GELF_ST_TYPE (sym->st_info) == STT_GNU_IFUNC))
797 st_value = sym->st_value & ebl_func_addr_mask (ebl);
799 st_value = sym->st_value;
800 if (GELF_ST_TYPE (sym->st_info) != STT_TLS)
802 if (! ebl_check_special_symbol (ebl, sym, name,
816 || sym->st_size != 0
836 + sym->st_size) > destshdr->sh_size)
860 else if (st_value + sym->st_size
908 else if (st_value + sym->st_size
921 if (GELF_ST_BIND (sym->st_info) == STB_LOCAL)
936 if (GELF_ST_TYPE (sym->st_info) == STT_SECTION
937 && GELF_ST_BIND (sym->st_info) != STB_LOCAL)
1003 if (!ebl_check_special_symbol (ebl, sym, name,
1007 && sym->st_value != destshdr->sh_addr)
1014 (uint64_t) sym->st_value,
1017 if (!gnuld && sym->st_size != destshdr->sh_size)
1021 (uint64_t) sym->st_size,
1041 if (sym->st_value != phdr->p_vaddr)
1045 (uint64_t) sym->st_value,
1048 if (!gnuld && sym->st_size != phdr->p_memsz)
1052 (uint64_t) sym->st_size,
1060 if (GELF_ST_VISIBILITY (sym->st_other) != STV_DEFAULT
1065 if (! ebl_check_st_other_bits (ebl, sym->st_other))
1409 GElf_Sym *sym = gelf_getsym (symdata, GELF_R_SYM (r_info), &sym_mem);
1410 if (sym != NULL
1412 && (name = elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name))
1437 GElf_Sym *sym = gelf_getsym (symdata, GELF_R_SYM (r_info), &sym_mem);
1441 && sym != NULL
1442 && GELF_ST_TYPE (sym->st_info) != STT_NOTYPE
1443 && GELF_ST_TYPE (sym->st_info) != STT_OBJECT)
1448 ebl_symbol_type_name (ebl, GELF_ST_TYPE (sym->st_info),
1459 && r_offset + (sym == NULL ? 0 : sym->st_size) >= loaded->from)
2006 GElf_Sym *sym = gelf_getsym (symdata, cnt, &sym_data);
2007 if (sym == NULL)
2013 if (sym->st_shndx != SHN_XINDEX)
2162 /* Is there still room for the sym chain?
2228 GElf_Sym *sym = gelf_getsym (symdata, symidx, &sym_mem);
2229 if (sym != NULL && sym->st_shndx == SHN_UNDEF
2230 && GELF_ST_TYPE (sym->st_info) != STT_FUNC)
2236 const char *symname = (sym != NULL
2238 sym->st_name)
2586 GElf_Sym *sym = gelf_getsym (sym_data, cnt, &sym_mem);
2588 if (sym != NULL && sym->st_shndx != STN_UNDEF)
2656 GElf_Sym *sym = gelf_getsym (elf_getdata (symscn, NULL), shdr->sh_info,
2658 if (sym == NULL)
2662 else if (elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name) == NULL)
2666 else if (strcmp (elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name),
2991 GElf_Sym *sym = gelf_getsym (symdata, cnt, &sym_mem);
2992 if (sym == NULL)
2999 if (GELF_ST_BIND (sym->st_info) == STB_LOCAL)
3007 if (!gnuld && GELF_ST_BIND (sym->st_info) == STB_LOCAL)
3025 else if (sym->st_shndx == SHN_UNDEF
3030 else if (sym->st_shndx != SHN_UNDEF
3036 && !in_nobits_scn (ebl, sym->st_shndx))