Home | History | Annotate | Download | only in gold

Lines Matching refs:elfcpp

55 		    elfcpp::STT type, elfcpp::STB binding,
56 elfcpp::STV visibility, unsigned char nonvis)
116 const elfcpp::Sym<size, big_endian>& sym,
135 Output_data* od, elfcpp::STT type,
136 elfcpp::STB binding, elfcpp::STV visibility,
154 Output_segment* os, elfcpp::STT type,
155 elfcpp::STB binding, elfcpp::STV visibility,
174 elfcpp::STT type, elfcpp::STB binding,
175 elfcpp::STV visibility, unsigned char nonvis,
190 elfcpp::STT type, elfcpp::STB binding,
191 elfcpp::STV visibility, unsigned char nonvis)
218 const elfcpp::Sym<size, big_endian>& sym,
233 Size_type symsize, elfcpp::STT type,
234 elfcpp::STB binding,
235 elfcpp::STV visibility,
253 Size_type symsize, elfcpp::STT type,
254 elfcpp::STB binding,
255 elfcpp::STV visibility,
273 elfcpp::STT type, elfcpp::STB binding,
274 elfcpp::STV visibility, unsigned char nonvis,
288 elfcpp::STT type, elfcpp::STB binding,
289 elfcpp::STV visibility, unsigned char nonvis)
316 return (shndx == elfcpp::SHN_COMMON
360 if (is_ordinary && shndx != elfcpp::SHN_UNDEF
386 && this->type() == elfcpp::STT_OBJECT)
428 && this->binding() == elfcpp::STB_GNU_UNIQUE))
448 && !(this->type() == elfcpp::STT_TLS
489 if (shndx != elfcpp::SHN_UNDEF && this->is_ordinary_shndx_)
653 if (is_ordinary && shndx != elfcpp::SHN_UNDEF)
729 unsigned char buf[elfcpp::Elf_sizes<size>::sym_size];
730 elfcpp::Sym_write<size, big_endian> esym(buf);
870 else if (sym->visibility() != elfcpp::STV_DEFAULT
873 else if (pdef->second->visibility() != elfcpp::STV_DEFAULT
926 const elfcpp::Sym<size, big_endian>& sym,
934 if (orig_st_shndx == elfcpp::SHN_UNDEF)
942 if (orig_st_shndx == elfcpp::SHN_UNDEF
1082 if (ret->type() == elfcpp::STT_TLS)
1096 if ((ret->visibility() == elfcpp::STV_HIDDEN
1097 || ret->visibility() == elfcpp::STV_INTERNAL)
1098 && (ret->binding() == elfcpp::STB_GLOBAL
1099 || ret->binding() == elfcpp::STB_GNU_UNIQUE
1100 || ret->binding() == elfcpp::STB_WEAK)
1125 const int sym_size = elfcpp::Elf_sizes<size>::sym_size;
1134 elfcpp::Sym<size, big_endian> sym(p);
1156 orig_st_shndx = elfcpp::SHN_UNDEF;
1158 if (st_shndx != elfcpp::SHN_UNDEF)
1164 if (st_shndx != elfcpp::SHN_UNDEF
1169 st_shndx = elfcpp::SHN_UNDEF;
1211 && st_shndx != elfcpp::SHN_UNDEF)
1234 elfcpp::Sym<size, big_endian>* psym = &sym;
1236 elfcpp::Sym<size, big_endian> sym2(symbuf);
1240 elfcpp::Sym_write<size, big_endian> sw(symbuf);
1241 if (orig_st_shndx != elfcpp::SHN_UNDEF
1243 && relobj->e_type() == elfcpp::ET_REL)
1254 st_shndx = elfcpp::SHN_ABS;
1261 && (orig_st_shndx != elfcpp::SHN_UNDEF || !is_ordinary))
1270 elfcpp::STV visibility = sym2.get_st_visibility();
1271 if (visibility == elfcpp::STV_DEFAULT
1272 || visibility == elfcpp::STV_PROTECTED)
1274 elfcpp::Sym_write<size, big_endian> sw(symbuf);
1276 sw.put_st_other(elfcpp::STV_HIDDEN, nonvis);
1319 elfcpp::Sym<size, big_endian>* sym)
1322 bool is_ordinary = st_shndx < elfcpp::SHN_LORESERVE;
1338 && st_shndx != elfcpp::SHN_UNDEF)
1412 const int sym_size = elfcpp::Elf_sizes<size>::sym_size;
1428 elfcpp::Sym<size, big_endian> sym(p);
1435 if (sym.get_st_bind() == elfcpp::STB_LOCAL
1436 || sym.get_st_visibility() == elfcpp::STV_INTERNAL
1437 || sym.get_st_visibility() == elfcpp::STV_HIDDEN)
1443 elfcpp::Sym<size, big_endian>* psym = &sym;
1445 elfcpp::Sym<size, big_endian> sym2(symbuf);
1446 if (sym.get_st_visibility() == elfcpp::STV_PROTECTED)
1449 elfcpp::Sym_write<size, big_endian> sw(symbuf);
1450 sw.put_st_other(elfcpp::STV_DEFAULT, sym.get_st_nonvis());
1468 if (st_shndx != elfcpp::SHN_UNDEF)
1485 unsigned int v = elfcpp::Swap<16, big_endian>::readval(vs);
1487 bool hidden = (v & elfcpp::VERSYM_HIDDEN) != 0;
1488 v &= elfcpp::VERSYM_VERSION;
1497 if (v == static_cast<unsigned int>(elfcpp::VER_NDX_LOCAL)
1498 && st_shndx != elfcpp::SHN_UNDEF)
1508 if (v == static_cast<unsigned int>(elfcpp::VER_NDX_LOCAL)
1509 || v == static_cast<unsigned int>(elfcpp::VER_NDX_GLOBAL))
1541 if (st_shndx == elfcpp::SHN_ABS
1550 !hidden && st_shndx != elfcpp::SHN_UNDEF;
1561 if (st_shndx != elfcpp::SHN_UNDEF
1563 && psym->get_st_type() == elfcpp::STT_OBJECT
1583 elfcpp::Sym<size, big_endian>* sym)
1586 bool is_ordinary = st_shndx < elfcpp::SHN_LORESERVE;
1633 if (s1->binding() == elfcpp::STB_WEAK)
1635 if (s2->binding() == elfcpp::STB_WEAK)
1661 if ((*p)->binding() != elfcpp::STB_WEAK)
1853 elfcpp::STT type,
1854 elfcpp::STB binding,
1855 elfcpp::STV visibility,
1897 typename elfcpp::Elf_types<size>::Elf_Addr value,
1898 typename elfcpp::Elf_types<size>::Elf_WXword symsize,
1899 elfcpp::STT type,
1900 elfcpp::STB binding,
1901 elfcpp::STV visibility,
1940 if (binding == elfcpp::STB_LOCAL
1969 elfcpp::STT type,
1970 elfcpp::STB binding,
1971 elfcpp::STV visibility,
2011 typename elfcpp::Elf_types<size>::Elf_Addr value,
2012 typename elfcpp::Elf_types<size>::Elf_WXword symsize,
2013 elfcpp::STT type,
2014 elfcpp::STB binding,
2015 elfcpp::STV visibility,
2054 if (binding == elfcpp::STB_LOCAL
2083 elfcpp::STT type,
2084 elfcpp::STB binding,
2085 elfcpp::STV visibility,
2124 typename elfcpp::Elf_types<size>::Elf_Addr value,
2125 typename elfcpp::Elf_types<size>::Elf_WXword symsize,
2126 elfcpp::STT type,
2127 elfcpp::STB binding,
2128 elfcpp::STV visibility,
2171 && (binding == elfcpp::STB_LOCAL
2252 typename elfcpp::Elf_types<size>::Elf_Addr value)
2262 elfcpp::STB binding = csym->binding();
2263 if (binding == elfcpp::STB_WEAK)
2264 binding = elfcpp::STB_GLOBAL;
2395 sym->init_undefined(name, version, elfcpp::STT_NOTYPE, elfcpp::STB_GLOBAL,
2396 elfcpp::STV_DEFAULT, 0);
2554 *poff += elfcpp::Elf_sizes<size>::sym_size;
2623 && shndx != elfcpp::SHN_ABS
2634 shndx = elfcpp::SHN_UNDEF;
2639 shndx = elfcpp::SHN_UNDEF;
2641 else if (shndx == elfcpp::SHN_UNDEF)
2644 && (shndx == elfcpp::SHN_ABS
2691 if (sym->type() == elfcpp::STT_TLS)
2704 if (sym->type() != elfcpp::STT_TLS)
2721 if (sym->type() != elfcpp::STT_TLS)
2875 const int sym_size = elfcpp::Elf_sizes<size>::sym_size;
2919 typename elfcpp::Elf_types<size>::Elf_Addr sym_value = sym->value();
2920 typename elfcpp::Elf_types<size>::Elf_Addr dynsym_value = sym_value;
2921 elfcpp::STB binding = sym->binding();
2926 && binding == elfcpp::STB_GLOBAL
2928 binding = elfcpp::STB_WEAK;
2931 if (binding == elfcpp::STB_GNU_UNIQUE
2933 binding = elfcpp::STB_GLOBAL;
2943 && in_shndx != elfcpp::SHN_ABS
2957 shndx = elfcpp::SHN_UNDEF;
2959 binding = elfcpp::STB_WEAK;
2961 binding = elfcpp::STB_GLOBAL;
2964 shndx = elfcpp::SHN_UNDEF;
2965 else if (in_shndx == elfcpp::SHN_UNDEF
2967 && (in_shndx == elfcpp::SHN_ABS
2990 if (shndx >= elfcpp::SHN_LORESERVE)
2996 shndx = elfcpp::SHN_XINDEX;
3013 if (shndx >= elfcpp::SHN_LORESERVE)
3019 shndx = elfcpp::SHN_XINDEX;
3030 shndx = elfcpp::SHN_ABS;
3034 shndx = elfcpp::SHN_ABS;
3038 shndx = elfcpp::SHN_UNDEF;
3078 typename elfcpp::Elf_types<size>::Elf_Addr value,
3080 elfcpp::STB binding,
3084 elfcpp::Sym_write<size, big_endian> osym(p);
3091 if (shndx == elfcpp::SHN_UNDEF && sym->is_from_dynobj())
3095 elfcpp::STT type = sym->type();
3097 if (type == elfcpp::STT_GNU_IFUNC
3099 type = elfcpp::STT_FUNC;
3102 osym.put_st_info(elfcpp::elf_st_info(elfcpp::STB_LOCAL, type));
3104 osym.put_st_info(elfcpp::elf_st_info(binding, type));
3105 osym.put_st_other(elfcpp::elf_st_other(sym->visibility(), sym->nonvis()));
3129 && sym->shndx(&dummy) == elfcpp::SHN_UNDEF
3130 && sym->binding() != elfcpp::STB_WEAK
3190 const int sym_size = elfcpp::Elf_sizes<size>::sym_size;
3194 elfcpp::Sym_write<size, big_endian> osym(pov);
3201 osym.put_st_info(elfcpp::elf_st_info(elfcpp::STB_LOCAL,
3202 elfcpp::STT_SECTION));
3203 osym.put_st_other(elfcpp::elf_st_other(elfcpp::STV_DEFAULT, 0));
3206 if (shndx >= elfcpp::SHN_LORESERVE)
3209 shndx = elfcpp::SHN_XINDEX;
3541 elfcpp::Sym<32, false>* sym);
3551 elfcpp::Sym<32, true>* sym);
3561 elfcpp::Sym<64, false>* sym);
3571 elfcpp::Sym<64, true>* sym);
3645 elfcpp::Sym<32, false>* sym);
3655 elfcpp::Sym<32, true>* sym);
3665 elfcpp::Sym<64, false>* sym);
3675 elfcpp::Sym<64, true>* sym);
3684 elfcpp::Elf_types<32>::Elf_Addr value);
3693 elfcpp::Elf_types<64>::Elf_Addr value);
3701 Size_type symsize, elfcpp::STT type,
3702 elfcpp::STB binding,
3703 elfcpp::STV visibility,
3714 Size_type symsize, elfcpp::STT type,
3715 elfcpp::STB binding,
3716 elfcpp::STV visibility,