diff options
Diffstat (limited to 'compiler/elf_patcher.cc')
-rw-r--r-- | compiler/elf_patcher.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/elf_patcher.cc b/compiler/elf_patcher.cc index f192227c1f..92eb4d8955 100644 --- a/compiler/elf_patcher.cc +++ b/compiler/elf_patcher.cc @@ -276,7 +276,7 @@ bool ElfPatcher::WriteOutPatchData() { << "We got more patches than anticipated"; CHECK_LE(reinterpret_cast<uintptr_t>(elf_file_->Begin()) + shdr->sh_offset + shdr->sh_size, reinterpret_cast<uintptr_t>(elf_file_->End())) << "section is too large"; - CHECK(shdr == &elf_file_->GetSectionHeader(elf_file_->GetSectionHeaderNum() - 1) || + CHECK(shdr == elf_file_->GetSectionHeader(elf_file_->GetSectionHeaderNum() - 1) || shdr->sh_offset + shdr->sh_size <= (shdr + 1)->sh_offset) << "Section overlaps onto next section"; // It's mmap'd so we can just memcpy. |