From 3dfcdd759b602ffe039a2d96408c748eb5dff84c Mon Sep 17 00:00:00 2001 From: Download-Fritz Date: Fri, 18 Sep 2020 12:24:08 +0200 Subject: [PATCH] OcPeCoffLib: Tolerate gaps between sections --- Changelog.md | 1 + Library/OcPeCoffLib/OcPeCoffLib.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index c77777d6..787705c9 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,7 @@ OpenCore Changelog - Added mkext 32-bit kext injection (10.4-10.6) - Added cacheless 32-bit kext injection (10.4-10.7) - Added 32-bit kernel/kext patching/blocking support +- Fixed issues loading 10.7 EfiBoot #### v0.6.1 - Improved recognition of early pressed hotkeys, thx @varahash diff --git a/Library/OcPeCoffLib/OcPeCoffLib.c b/Library/OcPeCoffLib/OcPeCoffLib.c index c012952b..c846215c 100644 --- a/Library/OcPeCoffLib/OcPeCoffLib.c +++ b/Library/OcPeCoffLib/OcPeCoffLib.c @@ -121,8 +121,7 @@ InternalVerifySections ( // // FIXME: Misaligned images should be handled with a PCD. // - if (Sections[SectIndex].VirtualAddress < SectRvaPrevEnd - || Sections[SectIndex].VirtualAddress > NextSectRva) { + if (Sections[SectIndex].VirtualAddress < SectRvaPrevEnd) { return IMAGE_ERROR_UNSUPPORTED; }