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()
321 this->WriteFully(name.c_str(), name.length() + 1); in Write()
389 this->header_.sh_info = locals_end - syms_.begin(); // Required by the spec. in WriteCachedSection()
391 this->Start(); in WriteCachedSection()
393 this->WriteFully(&syms_.front(), sizeof(Elf_Sym)); in WriteCachedSection()
395 this->End(); in WriteCachedSection()
424 this->WriteUint32(4); // namesz. in Write()
425 this->WriteUint32(kBuildIdLen); // descsz. in Write()
426 this->WriteUint32(3); // type = NT_GNU_BUILD_ID. in Write()
427 this->WriteFully("GNU", 4); // name. in Write()
428 digest_start_ = this->Seek(0, kSeekCurrent); in Write()
430 this->WriteFully(std::string(kBuildIdLen, '\0').c_str(), kBuildIdLen); // desc. in Write()
431 DCHECK_EQ(this->GetPosition(), GetSize()); in Write()
441 return this->WriteFully(&v, sizeof(v)); in WriteUint32()
453 rodata_(this, ".rodata", SHT_PROGBITS, SHF_ALLOC, nullptr, 0, kPageSize, 0), in ElfBuilder()
454 text_(this, ".text", SHT_PROGBITS, SHF_ALLOC | SHF_EXECINSTR, nullptr, 0, kPageSize, 0), in ElfBuilder()
456 this, ".data.bimg.rel.ro", SHT_PROGBITS, SHF_ALLOC, nullptr, 0, kPageSize, 0), in ElfBuilder()
457 bss_(this, ".bss", SHT_NOBITS, SHF_ALLOC, nullptr, 0, kPageSize, 0), in ElfBuilder()
458 dex_(this, ".dex", SHT_NOBITS, SHF_ALLOC, nullptr, 0, kPageSize, 0), in ElfBuilder()
459 dynstr_(this, ".dynstr", SHF_ALLOC, kPageSize), in ElfBuilder()
460 dynsym_(this, ".dynsym", SHT_DYNSYM, SHF_ALLOC, &dynstr_), in ElfBuilder()
461 hash_(this, ".hash", SHT_HASH, SHF_ALLOC, &dynsym_, 0, sizeof(Elf_Word), sizeof(Elf_Word)), in ElfBuilder()
462 dynamic_(this, ".dynamic", SHT_DYNAMIC, SHF_ALLOC, &dynstr_, 0, kPageSize, sizeof(Elf_Dyn)), in ElfBuilder()
463 strtab_(this, ".strtab", 0, 1), in ElfBuilder()
464 symtab_(this, ".symtab", SHT_SYMTAB, 0, &strtab_), in ElfBuilder()
465 debug_frame_(this, ".debug_frame", SHT_PROGBITS, 0, nullptr, 0, sizeof(Elf_Addr), 0), in ElfBuilder()
467 this, ".debug_frame_hdr.android", SHT_PROGBITS, 0, nullptr, 0, sizeof(Elf_Addr), 0), in ElfBuilder()
468 debug_info_(this, ".debug_info", SHT_PROGBITS, 0, nullptr, 0, 1, 0), in ElfBuilder()
469 debug_line_(this, ".debug_line", SHT_PROGBITS, 0, nullptr, 0, 1, 0), in ElfBuilder()
470 shstrtab_(this, ".shstrtab", 0, 1), in ElfBuilder()
471 build_id_(this, ".note.gnu.build-id", SHT_NOTE, SHF_ALLOC, nullptr, 0, 4, 0), in ElfBuilder()
503 std::unique_ptr<Section> s(new Section(this, name, SHT_PROGBITS, 0, nullptr, 0, 1, 0)); in WriteSection()