Home | History | Annotate | Download | only in gold

Lines Matching full:elfcpp

28 #include "elfcpp.h"
80 const elfcpp::Ehdr<size, big_endian>& ehdr)
128 case elfcpp::SHT_DYNSYM:
139 case elfcpp::SHT_SYMTAB:
143 case elfcpp::SHT_GNU_versym:
146 case elfcpp::SHT_GNU_verdef:
149 case elfcpp::SHT_GNU_verneed:
152 case elfcpp::SHT_DYNAMIC:
155 case elfcpp::SHT_SYMTAB_SHNDX:
212 elfcpp::SHT type,
256 gold_assert(dynamicshdr.get_sh_type() == elfcpp::SHT_DYNAMIC);
273 if (strtabshdr.get_sh_type() != elfcpp::SHT_STRTAB)
295 case elfcpp::DT_NULL:
300 case elfcpp::DT_SONAME:
312 case elfcpp::DT_NEEDED:
409 if (strtabshdr.get_sh_type() != elfcpp::SHT_STRTAB)
426 this->read_dynsym_section(pshdrs, versym_shndx, elfcpp::SHT_GNU_versym,
435 this->read_dynsym_section(pshdrs, verdef_shndx, elfcpp::SHT_GNU_verdef,
439 this->read_dynsym_section(pshdrs, verneed_shndx, elfcpp::SHT_GNU_verneed,
553 elfcpp::Verdef<size, big_endian> verdef(p);
555 if (verdef.get_vd_version() != elfcpp::VER_DEF_CURRENT)
587 elfcpp::Verdaux<size, big_endian> verdaux(pvda);
632 elfcpp::Verneed<size, big_endian> verneed(p);
634 if (verneed.get_vn_version() != elfcpp::VER_NEED_CURRENT)
654 elfcpp::Vernaux<size, big_endian> vernaux(pvna);
806 const int sym_size = elfcpp::Elf_sizes<size>::sym_size;
813 elfcpp::Sym<size, big_endian> sym(p);
814 if (sym.get_st_shndx() != elfcpp::SHN_UNDEF
815 && sym.get_st_bind() != elfcpp::STB_LOCAL)
993 elfcpp::Swap<32, big_endian>::writeval(p, bucketcount);
995 elfcpp::Swap<32, big_endian>::writeval(p, chaincount);
1000 elfcpp::Swap<32, big_endian>::writeval(p, bucket[i]);
1006 elfcpp::Swap<32, big_endian>::writeval(p, chain[i]);
1164 elfcpp::Swap<32, big_endian>::writeval(phash, 1);
1166 elfcpp::Swap<32, big_endian>::writeval(phash + 4, unhashed_dynsym_count);
1168 elfcpp::Swap<32, big_endian>::writeval(phash + 8, 1);
1170 elfcpp::Swap<32, big_endian>::writeval(phash + 12, 0);
1172 elfcpp::Swap<size, big_endian>::writeval(phash + 16, 0);
1174 elfcpp::Swap<32, big_endian>::writeval(phash + 16 + size / 8, 0);
1215 typedef typename elfcpp::Elf_types<size>::Elf_WXword Word;
1236 elfcpp::Swap<32, big_endian>::writeval(phash, bucketcount);
1237 elfcpp::Swap<32, big_endian>::writeval(phash + 4, symindx);
1238 elfcpp::Swap<32, big_endian>::writeval(phash + 8, maskwords);
1239 elfcpp::Swap<32, big_endian>::writeval(phash + 12, shift2);
1245 elfcpp::Swap<32, big_endian>::writeval(p, 0);
1247 elfcpp::Swap<32, big_endian>::writeval(p, indx[i]);
1267 elfcpp::Swap<32, big_endian>::writeval(p + (indx[bucket] - symindx) * 4,
1278 elfcpp::Swap<size, big_endian>::writeval(p, bitmask[i]);
1294 const int verdef_size = elfcpp::Elf_sizes<size>::verdef_size;
1295 const int verdaux_size = elfcpp::Elf_sizes<size>::verdaux_size;
1297 elfcpp::Verdef_write<size, big_endian> vd(pb);
1298 vd.set_vd_version(elfcpp::VER_DEF_CURRENT);
1299 vd.set_vd_flags((this->is_base_ ? elfcpp::VER_FLG_BASE : 0)
1300 | (this->is_weak_ ? elfcpp::VER_FLG_WEAK : 0)
1301 | (this->is_info_ ? elfcpp::VER_FLG_INFO : 0));
1311 elfcpp::Verdaux_write<size, big_endian> vda(pb);
1322 elfcpp::Verdaux_write<size, big_endian> vda(pb);
1374 const int verneed_size = elfcpp::Elf_sizes<size>::verneed_size;
1375 const int vernaux_size = elfcpp::Elf_sizes<size>::vernaux_size;
1377 elfcpp::Verneed_write<size, big_endian> vn(pb);
1378 vn.set_vn_version(elfcpp::VER_NEED_CURRENT);
1393 elfcpp::Vernaux_write<size, big_endian> vna(pb);
1638 elfcpp::STT_OBJECT,
1639 elfcpp::STB_GLOBAL,
1640 elfcpp::STV_DEFAULT, 0,
1687 return elfcpp::VER_NDX_GLOBAL;
1725 elfcpp::Swap<16, big_endian>::writeval(pbuf + i * 2,
1726 elfcpp::VER_NDX_LOCAL);
1739 version_index = elfcpp::VER_NDX_GLOBAL;
1741 version_index = elfcpp::VER_NDX_LOCAL;
1746 version_index |= elfcpp::VERSYM_HIDDEN;
1747 elfcpp::Swap<16, big_endian>::writeval(pbuf + (*p)->dynsym_index() * 2,
1767 const int verdef_size = elfcpp::Elf_sizes<size>::verdef_size;
1768 const int verdaux_size = elfcpp::Elf_sizes<size>::verdaux_size;
1810 const int verneed_size = elfcpp::Elf_sizes<size>::verneed_size;
1811 const int vernaux_size = elfcpp::Elf_sizes<size>::vernaux_size;