Home | History | Annotate | Download | only in gold

Lines Matching refs:elfcpp

284       if (sh_type != elfcpp::SHT_REL && sh_type != elfcpp::SHT_RELA)
307 bool is_section_allocated = ((secshdr.get_sh_flags() & elfcpp::SHF_ALLOC)
329 if (sh_type == elfcpp::SHT_REL)
330 reloc_size = elfcpp::Elf_sizes<size>::rel_size;
332 reloc_size = elfcpp::Elf_sizes<size>::rela_size;
370 gold_assert(symtabshdr.get_sh_type() == elfcpp::SHT_SYMTAB);
519 if (sh_type == elfcpp::SHT_RELA)
553 if (p->sh_type == elfcpp::SHT_REL)
554 this->emit_relocs_scan_reltype<elfcpp::SHT_REL>(symtab, layout,
558 elfcpp::SHT_RELA);
559 this->emit_relocs_scan_reltype<elfcpp::SHT_RELA>(symtab, layout,
599 if (p->sh_type == elfcpp::SHT_REL)
600 this->incremental_relocs_scan_reltype<elfcpp::SHT_REL>(p);
603 gold_assert(p->sh_type == elfcpp::SHT_RELA);
604 this->incremental_relocs_scan_reltype<elfcpp::SHT_RELA>(p);
631 typename elfcpp::Elf_types<size>::Elf_WXword r_info =
633 const unsigned int r_sym = elfcpp::elf_r_sym<size>(r_info);
743 if (shdr.get_sh_type() == elfcpp::SHT_NOBITS)
748 && (shdr.get_sh_type() == elfcpp::SHT_REL
749 || shdr.get_sh_type() == elfcpp::SHT_RELA)
750 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
929 if (sh_type != elfcpp::SHT_REL && sh_type != elfcpp::SHT_RELA)
969 if (sh_type == elfcpp::SHT_REL)
970 reloc_size = elfcpp::Elf_sizes<size>::rel_size;
972 reloc_size = elfcpp::Elf_sizes<size>::rela_size;
1005 if ((data_shdr.get_sh_flags() & elfcpp::SHF_EXECINSTR) != 0)
1054 if (sh_type == elfcpp::SHT_REL)
1055 this->incremental_relocs_write_reltype<elfcpp::SHT_REL>(
1064 gold_assert(sh_type == elfcpp::SHT_RELA);
1065 this->incremental_relocs_write_reltype<elfcpp::SHT_RELA>(
1110 typename elfcpp::Elf_types<size>::Elf_WXword r_info = reloc.get_r_info();
1111 const unsigned int r_sym = elfcpp::elf_r_sym<size>(r_info);
1112 const unsigned int r_type = elfcpp::elf_r_type<size>(r_info);
1136 typename elfcpp::Elf_types<size>::Elf_Swxword addend;
1137 if (sh_type == elfcpp::SHT_RELA)
1154 elfcpp::Swap<32, big_endian>::writeval(pov, r_type);
1155 elfcpp::Swap<32, big_endian>::writeval(pov + 4, out_shndx);
1156 elfcpp::Swap<size, big_endian>::writeval(pov + 8, offset);
1157 elfcpp::Swap<size, big_endian>::writeval(pov + 8 + sizeof_addr, addend);
1210 if (sh_type == elfcpp::SHT_REL)
1211 this->split_stack_adjust_reltype<elfcpp::SHT_REL>(symtab, pshdrs, shndx,
1217 gold_assert(sh_type == elfcpp::SHT_RELA);
1218 this->split_stack_adjust_reltype<elfcpp::SHT_RELA>(symtab, pshdrs, shndx,
1253 typename elfcpp::Elf_types<size>::Elf_WXword r_info = reloc.get_r_info();
1254 unsigned int r_sym = elfcpp::elf_r_sym<size>(r_info);
1273 unsigned int r_type = elfcpp::elf_r_type<size>(reloc.get_r_info());
1345 typename elfcpp::Elf_types<size>::Elf_WXword r_info =
1347 unsigned int r_sym = elfcpp::elf_r_sym<size>(r_info);
1398 gold_assert(symtabshdr.get_sh_type() == elfcpp::SHT_SYMTAB);
1400 typename elfcpp::Elf_types<size>::Elf_WXword sh_size =
1409 typename elfcpp::Sym<size, big_endian> isym(psyms);
1413 if (isym.get_st_type() != elfcpp::STT_FUNC
1441 typedef typename elfcpp::Swap<size, big_endian>::Valtype Valtype;
1470 typename elfcpp::Elf_types<size>::Elf_Addr
1474 typename elfcpp::Elf_types<size>::Elf_Addr input_offset) const
1518 if (reloc_type == elfcpp::SHT_REL)
1519 this->reloc_size_ = elfcpp::Elf_sizes<size>::rel_size;
1520 else if (reloc_type == elfcpp::SHT_RELA)
1521 this->reloc_size_ = elfcpp::Elf_sizes<size>::rela_size;
1548 elfcpp::Rel<size, big_endian> rel(this->prelocs_ + this->pos_);
1564 elfcpp::Rel<size, big_endian> rel(this->prelocs_ + this->pos_);
1565 return elfcpp::elf_r_sym<size>(rel.get_r_info());
1576 if (this->reloc_size_ == elfcpp::Elf_sizes<size>::rel_size)
1578 elfcpp::Rela<size, big_endian> rela(this->prelocs_ + this->pos_);
1594 elfcpp::Rel<size, big_endian> rel(this->prelocs_ + this->pos_);