Lines Matching refs:hdr
666 Elf32_Phdr* hdr = oat_file_->GetProgramHeader(i); in PatchElf() local
667 CHECK(hdr != nullptr); in PatchElf()
668 if (hdr->p_vaddr != 0 && hdr->p_vaddr != hdr->p_offset) { in PatchElf()
670 hdr->p_vaddr += delta_; in PatchElf()
672 if (hdr->p_paddr != 0 && hdr->p_paddr != hdr->p_offset) { in PatchElf()
674 hdr->p_paddr += delta_; in PatchElf()
684 Elf32_Shdr* hdr = oat_file_->GetSectionHeader(i); in PatchElf() local
685 CHECK(hdr != nullptr); in PatchElf()
686 if (hdr->sh_addr != 0) { in PatchElf()
687 hdr->sh_addr += delta_; in PatchElf()
866 ImageHeader hdr; in ReadBaseDelta() local
867 if (sizeof(hdr) != file->Read(reinterpret_cast<char*>(&hdr), sizeof(hdr), 0)) { in ReadBaseDelta()
871 if (!hdr.IsValid()) { in ReadBaseDelta()
875 *delta = hdr.GetPatchDelta(); in ReadBaseDelta()