Lines Matching refs:header_
100 header_(), in Section()
107 header_.sh_type = type; in Section()
108 header_.sh_flags = flags; in Section()
109 header_.sh_info = info; in Section()
110 header_.sh_addralign = align; in Section()
111 header_.sh_entsize = entsize; in Section()
122 CHECK_NE(header_.sh_flags & SHF_ALLOC, 0u); in AllocateVirtualMemory()
124 CHECK_EQ(header_.sh_addr, 0u); in AllocateVirtualMemory()
125 header_.sh_addr = RoundUp(addr, align); in AllocateVirtualMemory()
126 CHECK(header_.sh_size == 0u || header_.sh_size == size); in AllocateVirtualMemory()
127 header_.sh_size = size; in AllocateVirtualMemory()
128 CHECK_LE(owner_->virtual_address_, header_.sh_addr); in AllocateVirtualMemory()
129 owner_->virtual_address_ = header_.sh_addr + header_.sh_size; in AllocateVirtualMemory()
136 CHECK_EQ(header_.sh_offset, 0u); in Start()
137 header_.sh_offset = owner_->AlignFileOffset(align); in Start()
145 CHECK(header_.sh_size == 0u || header_.sh_size == position); in End()
146 header_.sh_size = position; in End()
155 DCHECK_GE(file_offset, (off_t)header_.sh_offset); in GetPosition()
156 return file_offset - header_.sh_offset; in GetPosition()
161 DCHECK_NE(header_.sh_flags & SHF_ALLOC, 0u); in GetAddress()
162 DCHECK_NE(header_.sh_addr, 0u); in GetAddress()
163 return header_.sh_addr; in GetAddress()
205 header_.sh_addralign = kPageSize; // Page-align if R/W/X flags changed. in AddSection()
210 return owner_->write_program_headers_ ? header_.sh_addralign : 1; in AddSection()
214 Elf_Shdr header_; variable
371 DCHECK_LE(sym.st_value, section->GetAddress() + section->header_.sh_size); in Add()
389 this->header_.sh_info = locals_end - syms_.begin(); // Required by the spec. in WriteCachedSection()
540 section->header_.sh_name = shstrtab_.Write(section->name_); in End()
542 section->header_.sh_link = section->link_->GetSectionIndex(); in End()
544 if (section->header_.sh_offset == 0) { in End()
545 section->header_.sh_type = SHT_NOBITS; in End()
555 shdrs.push_back(section->header_); in End()
603 section->header_.sh_offset = 0; in Strip()
604 section->header_.sh_size = 0; in Strip()
607 if (section->header_.sh_type != SHT_NOBITS) { in Strip()
608 DCHECK_LE(section->header_.sh_offset, end + kPageSize) << "Large gap between sections"; in Strip()
609 end = std::max<off_t>(end, section->header_.sh_offset + section->header_.sh_size); in Strip()
880 const Elf_Shdr& shdr = section->header_; in MakeProgramHeaders()
911 const Elf_Shdr& shdr = section->header_; in MakeProgramHeaders()