From 8995e023aa55948cc6edb5d36ca08e4f0d6070bf Mon Sep 17 00:00:00 2001 From: Download-Fritz Date: Tue, 26 Mar 2019 09:39:15 +0100 Subject: [PATCH] OcAppleKernelLib: Correctly locate section relocation address. --- Library/OcAppleKernelLib/Link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/OcAppleKernelLib/Link.c b/Library/OcAppleKernelLib/Link.c index ede7941c..13077093 100644 --- a/Library/OcAppleKernelLib/Link.c +++ b/Library/OcAppleKernelLib/Link.c @@ -554,7 +554,7 @@ InternalCalculateTargetsIntel64 ( } else { Section = MachoGetSectionByIndex64 ( MachoContext, - Relocation->SymbolNumber + (Relocation->SymbolNumber - 1) ); if (Section == NULL) { return FALSE;