Lines Matching refs:header_
106 header_(),
115 header_.sh_type = type;
116 header_.sh_flags = flags;
117 header_.sh_info = info;
118 header_.sh_addralign = align;
119 header_.sh_entsize = entsize;
135 if (header_.sh_flags != sections.back()->header_.sh_flags) {
136 header_.sh_addralign = kPageSize;
140 if (header_.sh_type != SHT_NOBITS) {
141 header_.sh_offset = owner_->AlignFileOffset(header_.sh_addralign);
143 header_.sh_offset = 0;
146 if ((header_.sh_flags & SHF_ALLOC) != 0) {
147 header_.sh_addr = owner_->AlignVirtualAddress(header_.sh_addralign);
149 header_.sh_addr = 0;
160 if (header_.sh_type == SHT_NOBITS) {
161 CHECK_GT(header_.sh_size, 0u);
165 CHECK_GE(file_offset, (off_t)header_.sh_offset);
166 header_.sh_size = file_offset - header_.sh_offset;
168 if ((header_.sh_flags & SHF_ALLOC) != 0) {
169 owner_->virtual_address_ += header_.sh_size;
176 return header_.sh_addr;
182 return header_.sh_size;
185 CHECK_NE(header_.sh_type, (Elf_Word)SHT_NOBITS);
186 return owner_->stream_.Seek(0, kSeekCurrent) - header_.sh_offset;
194 DCHECK_NE(header_.sh_flags & SHF_ALLOC, 0u);
195 header_.sh_type = SHT_NOBITS;
197 header_.sh_size = size;
230 Elf_Shdr header_;
619 section->header_.sh_name = shstrtab_.Write(section->name_);
621 section->header_.sh_link = section->link_->GetSectionIndex();
631 shdrs.push_back(section->header_);
682 DCHECK_EQ(rodata_.header_.sh_addralign, static_cast<Elf_Word>(kPageSize));
683 DCHECK_EQ(text_.header_.sh_addralign, static_cast<Elf_Word>(kPageSize));
684 DCHECK_EQ(bss_.header_.sh_addralign, static_cast<Elf_Word>(kPageSize));
685 DCHECK_EQ(dynstr_.header_.sh_addralign, static_cast<Elf_Word>(kPageSize));
761 DCHECK_EQ(dynstr_.header_.sh_flags, dynsym_.header_.sh_flags);
762 DCHECK_EQ(dynsym_.header_.sh_flags, hash_.header_.sh_flags);
764 RoundUp(dynstr_address + dynstr_.GetCacheSize(), dynsym_.header_.sh_addralign);
766 RoundUp(dynsym_address + dynsym_.GetCacheSize(), hash_.header_.sh_addralign);
767 DCHECK_EQ(dynamic_.header_.sh_addralign, static_cast<Elf_Word>(kPageSize));
932 const Elf_Shdr& shdr = section->header_;
962 const Elf_Shdr& shdr = section->header_;