• Home
  • Raw
  • Download

Lines Matching refs:this

138       owner_->current_section_ = this;  in Start()
143 CHECK(owner_->current_section_ == this); in End()
153 CHECK(owner_->current_section_ == this); in GetPosition()
169 CHECK(owner_->current_section_ == this); in WriteFully()
207 sections.push_back(this); in AddSection()
250 this->WriteFully(cache_.data(), cache_.size()); in Write()
256 this->Start(); in WriteCachedSection()
258 this->End(); in WriteCachedSection()
326 this->WriteFully(name.data(), name.length()); in Write()
328 this->WriteFully(&null_terminator, sizeof(null_terminator)); in Write()
399 this->header_.sh_info = locals_end - syms_.begin(); // Required by the spec. in WriteCachedSection()
401 this->Start(); in WriteCachedSection()
403 this->WriteFully(&syms_.front(), sizeof(Elf_Sym)); in WriteCachedSection()
405 this->End(); in WriteCachedSection()
434 this->WriteUint32(4); // namesz. in Write()
435 this->WriteUint32(kBuildIdLen); // descsz. in Write()
436 this->WriteUint32(3); // type = NT_GNU_BUILD_ID. in Write()
437 this->WriteFully("GNU", 4); // name. in Write()
438 digest_start_ = this->Seek(0, kSeekCurrent); in Write()
440 this->WriteFully(std::string(kBuildIdLen, '\0').c_str(), kBuildIdLen); // desc. in Write()
441 DCHECK_EQ(this->GetPosition(), GetSize()); in Write()
451 return this->WriteFully(&v, sizeof(v)); in WriteUint32()
463 rodata_(this, ".rodata", SHT_PROGBITS, SHF_ALLOC, nullptr, 0, kPageSize, 0), in ElfBuilder()
464 text_(this, ".text", SHT_PROGBITS, SHF_ALLOC | SHF_EXECINSTR, nullptr, 0, kPageSize, 0), in ElfBuilder()
466 this, ".data.bimg.rel.ro", SHT_PROGBITS, SHF_ALLOC, nullptr, 0, kPageSize, 0), in ElfBuilder()
467 bss_(this, ".bss", SHT_NOBITS, SHF_ALLOC, nullptr, 0, kPageSize, 0), in ElfBuilder()
468 dex_(this, ".dex", SHT_NOBITS, SHF_ALLOC, nullptr, 0, kPageSize, 0), in ElfBuilder()
469 dynstr_(this, ".dynstr", SHF_ALLOC, kPageSize), in ElfBuilder()
470 dynsym_(this, ".dynsym", SHT_DYNSYM, SHF_ALLOC, &dynstr_), in ElfBuilder()
471 hash_(this, ".hash", SHT_HASH, SHF_ALLOC, &dynsym_, 0, sizeof(Elf_Word), sizeof(Elf_Word)), in ElfBuilder()
472 dynamic_(this, ".dynamic", SHT_DYNAMIC, SHF_ALLOC, &dynstr_, 0, kPageSize, sizeof(Elf_Dyn)), in ElfBuilder()
473 strtab_(this, ".strtab", 0, 1), in ElfBuilder()
474 symtab_(this, ".symtab", SHT_SYMTAB, 0, &strtab_), in ElfBuilder()
475 debug_frame_(this, ".debug_frame", SHT_PROGBITS, 0, nullptr, 0, sizeof(Elf_Addr), 0), in ElfBuilder()
477 this, ".debug_frame_hdr.android", SHT_PROGBITS, 0, nullptr, 0, sizeof(Elf_Addr), 0), in ElfBuilder()
478 debug_info_(this, ".debug_info", SHT_PROGBITS, 0, nullptr, 0, 1, 0), in ElfBuilder()
479 debug_line_(this, ".debug_line", SHT_PROGBITS, 0, nullptr, 0, 1, 0), in ElfBuilder()
480 shstrtab_(this, ".shstrtab", 0, 1), in ElfBuilder()
481 build_id_(this, ".note.gnu.build-id", SHT_NOTE, SHF_ALLOC, nullptr, 0, 4, 0), in ElfBuilder()
513 std::unique_ptr<Section> s(new Section(this, name, SHT_PROGBITS, 0, nullptr, 0, 1, 0)); in WriteSection()