Home
last modified time | relevance | path

Searched refs:shdr (Results 1 – 2 of 2) sorted by relevance

/art/compiler/
Delf_patcher.cc281 Elf32_Shdr* shdr = elf_file_->FindSectionByName(".oat_patches"); in WriteOutPatchData() local
282 if (shdr != nullptr) { in WriteOutPatchData()
283 CHECK_EQ(shdr, elf_file_->FindSectionByType(SHT_OAT_PATCH)) in WriteOutPatchData()
285 CHECK_LE(patches_.size() * sizeof(uintptr_t), shdr->sh_size) in WriteOutPatchData()
287 CHECK_LE(reinterpret_cast<uintptr_t>(elf_file_->Begin()) + shdr->sh_offset + shdr->sh_size, in WriteOutPatchData()
289 CHECK(shdr == elf_file_->GetSectionHeader(elf_file_->GetSectionHeaderNum() - 1) || in WriteOutPatchData()
290 shdr->sh_offset + shdr->sh_size <= (shdr + 1)->sh_offset) in WriteOutPatchData()
293 memcpy(elf_file_->Begin() + shdr->sh_offset, patches_.data(), in WriteOutPatchData()
298 shdr->sh_size = patches_.size() * sizeof(uintptr_t); in WriteOutPatchData()
/art/runtime/
Delf_file.cc1278 Elf32_Shdr* shdr = GetSectionHeader(i); in FindSectionByName() local
1279 if (shdr == nullptr) { in FindSectionByName()
1282 const char* sec_name = GetString(*shstrtab_sec, shdr->sh_name); in FindSectionByName()
1287 return shdr; in FindSectionByName()