Lines Matching full:header_
101 header_(),
110 header_.sh_type = type;
111 header_.sh_flags = flags;
112 header_.sh_info = info;
113 header_.sh_addralign = align;
114 header_.sh_entsize = entsize;
130 if (header_.sh_flags != sections.back()->header_.sh_flags) {
131 header_.sh_addralign = kPageSize;
135 if (header_.sh_type != SHT_NOBITS) {
136 header_.sh_offset = owner_->AlignFileOffset(header_.sh_addralign);
138 header_.sh_offset = 0;
141 if ((header_.sh_flags & SHF_ALLOC) != 0) {
142 header_.sh_addr = owner_->AlignVirtualAddress(header_.sh_addralign);
144 header_.sh_addr = 0;
155 if (header_.sh_type == SHT_NOBITS) {
156 CHECK_GT(header_.sh_size, 0u);
160 CHECK_GE(file_offset, (off_t)header_.sh_offset);
161 header_.sh_size = file_offset - header_.sh_offset;
163 if ((header_.sh_flags & SHF_ALLOC) != 0) {
164 owner_->virtual_address_ += header_.sh_size;
171 return header_.sh_addr;
177 return header_.sh_size;
180 CHECK_NE(header_.sh_type, (Elf_Word)SHT_NOBITS);
181 return owner_->stream_.Seek(0, kSeekCurrent) - header_.sh_offset;
189 DCHECK_NE(header_.sh_flags & SHF_ALLOC, 0u);
190 header_.sh_type = SHT_NOBITS;
192 header_.sh_size = size;
225 Elf_Shdr header_;
569 section->header_.sh_name = shstrtab_.Write(section->name_);
571 section->header_.sh_link = section->link_->GetSectionIndex();
581 shdrs.push_back(section->header_);
630 DCHECK_EQ(rodata_.header_.sh_addralign, static_cast<Elf_Word>(kPageSize));
631 DCHECK_EQ(text_.header_.sh_addralign, static_cast<Elf_Word>(kPageSize));
632 DCHECK_EQ(bss_.header_.sh_addralign, static_cast<Elf_Word>(kPageSize));
633 DCHECK_EQ(dynstr_.header_.sh_addralign, static_cast<Elf_Word>(kPageSize));
690 DCHECK_EQ(dynstr_.header_.sh_flags, dynsym_.header_.sh_flags);
691 DCHECK_EQ(dynsym_.header_.sh_flags, hash_.header_.sh_flags);
693 RoundUp(dynstr_address + dynstr_.GetCacheSize(), dynsym_.header_.sh_addralign);
695 RoundUp(dynsym_address + dynsym_.GetCacheSize(), hash_.header_.sh_addralign);
696 DCHECK_EQ(dynamic_.header_.sh_addralign, static_cast<Elf_Word>(kPageSize));
850 const Elf_Shdr& shdr = section->header_;
880 const Elf_Shdr& shdr = section->header_;