Searched refs:shdr (Results 1 – 2 of 2) sorted by relevance
268 Elf32_Shdr* shdr = elf_file_->FindSectionByName(".oat_patches"); in WriteOutPatchData() local269 if (shdr != nullptr) { in WriteOutPatchData()270 CHECK_EQ(shdr, elf_file_->FindSectionByType(SHT_OAT_PATCH)) in WriteOutPatchData()272 CHECK_LE(patches_.size() * sizeof(uintptr_t), shdr->sh_size) in WriteOutPatchData()274 CHECK_LE(reinterpret_cast<uintptr_t>(elf_file_->Begin()) + shdr->sh_offset + shdr->sh_size, in WriteOutPatchData()276 CHECK(shdr == elf_file_->GetSectionHeader(elf_file_->GetSectionHeaderNum() - 1) || in WriteOutPatchData()277 shdr->sh_offset + shdr->sh_size <= (shdr + 1)->sh_offset) in WriteOutPatchData()280 memcpy(elf_file_->Begin() + shdr->sh_offset, patches_.data(), in WriteOutPatchData()285 shdr->sh_size = patches_.size() * sizeof(uintptr_t); in WriteOutPatchData()
1249 Elf32_Shdr* shdr = GetSectionHeader(i); in FindSectionByName() local1250 if (shdr == nullptr) { in FindSectionByName()1253 const char* sec_name = GetString(*shstrtab_sec, shdr->sh_name); in FindSectionByName()1258 return shdr; in FindSectionByName()