Home | History | Annotate | Download | only in src

Lines Matching defs:sym

643   GElf_Sym *sym = gelf_getsymshndx (data, xndxdata, 0, &sym_mem, &xndx);
644 if (sym == NULL)
649 if (sym->st_name != 0)
652 if (sym->st_value != 0)
655 if (sym->st_size != 0)
658 if (sym->st_info != 0)
661 if (sym->st_other != 0)
664 if (sym->st_shndx != 0)
675 sym = gelf_getsymshndx (data, xndxdata, cnt, &sym_mem, &xndx);
676 if (sym == NULL)
686 else if (sym->st_name >= strshdr->sh_size)
692 name = elf_strptr (ebl->elf, shdr->sh_link, sym->st_name);
696 if (sym->st_shndx == SHN_XINDEX)
712 else if ((sym->st_shndx >= SHN_LORESERVE
713 // && sym->st_shndx <= SHN_HIRESERVE always true
714 && sym->st_shndx != SHN_ABS
715 && sym->st_shndx != SHN_COMMON)
716 || (sym->st_shndx >= shnum
717 && (sym->st_shndx < SHN_LORESERVE
718 /* || sym->st_shndx > SHN_HIRESERVE always false */)))
723 xndx = sym->st_shndx;
725 if (GELF_ST_TYPE (sym->st_info) >= STT_NUM
726 && !ebl_symbol_type_name (ebl, GELF_ST_TYPE (sym->st_info), NULL, 0))
730 if (GELF_ST_BIND (sym->st_info) >= STB_NUM
731 && !ebl_symbol_binding_name (ebl, GELF_ST_BIND (sym->st_info), NULL,
736 if (GELF_ST_BIND (sym->st_info) == STB_GNU_UNIQUE
737 && GELF_ST_TYPE (sym->st_info) != STT_OBJECT)
753 if (GELF_R_TYPE (sym->st_info) == STT_FUNC)
768 if (GELF_ST_TYPE (sym->st_info) != STT_TLS)
770 if (! ebl_check_special_symbol (ebl, ehdr, sym, name,
773 if (sym->st_value - sh_addr > destshdr->sh_size)
790 else if ((sym->st_value - sh_addr
791 + sym->st_size) > destshdr->sh_size)
810 if (sym->st_value > destshdr->sh_size)
815 else if (sym->st_value + sym->st_size
844 if (sym->st_value
850 else if (sym->st_value
857 else if (sym->st_value + sym->st_size
870 if (GELF_ST_BIND (sym->st_info) == STB_LOCAL)
885 if (GELF_ST_TYPE (sym->st_info) == STT_SECTION
886 && GELF_ST_BIND (sym->st_info) != STB_LOCAL)
952 if (!ebl_check_special_symbol (ebl, ehdr, sym, name,
956 && sym->st_value != destshdr->sh_addr)
963 (uint64_t) sym->st_value,
966 if (!gnuld && sym->st_size != destshdr->sh_size)
970 (uint64_t) sym->st_size,
990 if (sym->st_value != phdr->p_vaddr)
994 (uint64_t) sym->st_value,
997 if (!gnuld && sym->st_size != phdr->p_memsz)
1001 (uint64_t) sym->st_size,
1009 if (GELF_ST_VISIBILITY (sym->st_other) != STV_DEFAULT
1014 if (! ebl_check_st_other_bits (ebl, sym->st_other))
1345 GElf_Sym *sym = gelf_getsym (symdata, GELF_R_SYM (r_info), &sym_mem);
1346 if (sym != NULL
1348 && (name = elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name))
1373 GElf_Sym *sym = gelf_getsym (symdata, GELF_R_SYM (r_info), &sym_mem);
1377 && sym != NULL
1378 && GELF_ST_TYPE (sym->st_info) != STT_NOTYPE
1379 && GELF_ST_TYPE (sym->st_info) != STT_OBJECT)
1384 ebl_symbol_type_name (ebl, GELF_ST_TYPE (sym->st_info),
1395 && r_offset + (sym == NULL ? 0 : sym->st_size) >= loaded->from)
1919 GElf_Sym *sym = gelf_getsym (symdata, cnt, &sym_data);
1920 if (sym == NULL)
1926 if (sym->st_shndx != SHN_XINDEX)
2095 GElf_Sym *sym = gelf_getsym (symdata, symidx, &sym_mem);
2096 if (sym != NULL && sym->st_shndx == SHN_UNDEF
2097 && GELF_ST_TYPE (sym->st_info) != STT_FUNC)
2104 sym->st_name);
2346 GElf_Sym *sym = gelf_getsym (sym_data, cnt, &sym_mem);
2348 if (sym != NULL && sym->st_shndx != STN_UNDEF)
2416 GElf_Sym *sym = gelf_getsym (elf_getdata (symscn, NULL), shdr->sh_info,
2418 if (sym == NULL)
2422 else if (strcmp (elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name),
2735 GElf_Sym *sym = gelf_getsym (symdata, cnt, &sym_mem);
2736 if (sym == NULL)
2743 if (GELF_ST_BIND (sym->st_info) == STB_LOCAL)
2751 if (!gnuld && GELF_ST_BIND (sym->st_info) == STB_LOCAL)
2769 else if (sym->st_shndx == SHN_UNDEF
2774 else if (sym->st_shndx != SHN_UNDEF
2780 && !in_nobits_scn (ebl, sym->st_shndx))